This repository was archived by the owner on Jan 8, 2019. It is now read-only.
File tree 3 files changed +10
-8
lines changed
3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -2,3 +2,5 @@ source "http://rubygems.org"
2
2
3
3
# Specify your gem's dependencies in git-gc-cron.gemspec
4
4
gemspec
5
+
6
+ gem "rake"
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ Feature: CLI
8
8
And a checked out repo "repos1/def/xyz"
9
9
And a bare repo "repos2/ghi.git"
10
10
And a bare repo "repos3/jkl.git"
11
- When I run " git-gc-cron repos1 repos2"
11
+ When I run ` git-gc-cron repos1 repos2`
12
12
Then the repo "repos1/abc" should be packed
13
13
And the repo "repos1/def/xyz" should be packed
14
14
And the repo "repos2/ghi.git" should be packed
@@ -17,6 +17,6 @@ Feature: CLI
17
17
Scenario : Verbose output
18
18
Given a checked out repo "repos1/abc"
19
19
And a checked out repo "repos1/def/xyz"
20
- When I run " git-gc-cron -v repos1"
20
+ When I run ` git-gc-cron -v repos1`
21
21
Then the output should contain "repos1/abc"
22
22
And the output should contain "repos1/def/xyz"
Original file line number Diff line number Diff line change 1
- Given /^a checked out repo "([^"]*)"$/ do |path |
1
+ Given ( /^a checked out repo "([^"]*)"$/ ) do |path |
2
2
dirs << path
3
3
run "git init -q"
4
4
dirs . pop
5
5
end
6
6
7
- Given /^a bare repo "([^"]*)"$/ do |path |
7
+ Given ( /^a bare repo "([^"]*)"$/ ) do |path |
8
8
dirs << path
9
9
run "git init --bare -q"
10
10
dirs . pop
11
11
end
12
12
13
- Then /^the repo "([^"]*)" should be packed$/ do |path |
13
+ Then ( /^the repo "([^"]*)" should be packed$/ ) do |path |
14
14
path << "/.git" unless path =~ /\. git$/
15
- Then %|a file named "#{ path } /objects/info/packs" should exist|
15
+ step %|a file named "#{ path } /objects/info/packs" should exist|
16
16
end
17
17
18
- Then /^the repo "([^"]*)" should not be packed$/ do |path |
18
+ Then ( /^the repo "([^"]*)" should not be packed$/ ) do |path |
19
19
path << "/.git" unless path =~ /\. git$/
20
- Then %|a file named "#{ path } /objects/info/packs" should not exist|
20
+ step %|a file named "#{ path } /objects/info/packs" should not exist|
21
21
end
You can’t perform that action at this time.
0 commit comments