dreamcat4-braid 0.533 → 0.534
Sign up to get free protection for your applications and to get access to all the features.
- data/braid.gemspec +1 -1
- data/lib/braid/rspec_git.rb +10 -1
- metadata +1 -1
data/braid.gemspec
CHANGED
data/lib/braid/rspec_git.rb
CHANGED
@@ -29,13 +29,22 @@ module RSpec
|
|
29
29
|
msg "Error updating #{r[:name]}"
|
30
30
|
exit 1
|
31
31
|
end
|
32
|
+
|
32
33
|
else
|
33
34
|
msg "** Fetching #{r[:name]}"
|
34
35
|
unless system "git clone #{r[:url]} #{r[:path]}"
|
35
36
|
msg "Error cloning #{r[:url]}"
|
36
37
|
exit 1
|
37
|
-
end
|
38
|
+
end
|
39
|
+
unless target == "master"
|
40
|
+
unless system "cd #{r[:path]} && git checkout -b #{target} origin/#{target}"
|
41
|
+
msg "Error checking out branch #{target}"
|
42
|
+
exit 1
|
43
|
+
end
|
44
|
+
end
|
45
|
+
msg "*** repo #{r[:name]} created successfully ***"
|
38
46
|
end
|
47
|
+
|
39
48
|
end
|
40
49
|
msg "*** all repos updated successfully ***"
|
41
50
|
end
|