ebm 0.0.24 → 0.0.25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/commands/prepare.rb +10 -2
- data/lib/commands/tag.rb +13 -2
- data/lib/info.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
SHA1:
|
3
|
-
data.tar.gz: b9fa2707d6aa2ba087f41a86c67621e4f4d63e4a
|
4
|
-
metadata.gz: 19150ec3f6cc610bfbaa1357c9dacfbe1f1af664
|
5
2
|
SHA512:
|
6
|
-
|
7
|
-
|
3
|
+
metadata.gz: 786ec8b4b779ca4b493caf7b33be605b8f7153d5aa8c1734f3ff014b586a64757d4695fd1d1bd033f9c539b44a7994ad6cabc535f8156872cc5ff3978db921c2
|
4
|
+
data.tar.gz: 5fc4701500b320c735e5fe127dc227281ebb938dafd5588a8e31ffa13daeec0ea41fbf0e52fc75f5f629534609b17296ad2c6da5fd51e36da8d83806551c3050
|
5
|
+
SHA1:
|
6
|
+
metadata.gz: 733ad60292f1607af13abf36606ba345915af87f
|
7
|
+
data.tar.gz: f27005a74f5dd048a82f6328f7ee54ae2b99e24c
|
data/lib/commands/prepare.rb
CHANGED
@@ -95,7 +95,11 @@ module Commands
|
|
95
95
|
cmd = "git checkout --track origin/#{dev_branch_name}"
|
96
96
|
if EbmSharedLib::CL.do_cmd_result(cmd, repo_path) != 0
|
97
97
|
# no remote branch, so create local and push as remote
|
98
|
-
cmd = "git checkout -B #{dev_branch_name}
|
98
|
+
cmd = "git checkout -B #{dev_branch_name}"
|
99
|
+
if EbmSharedLib::CL.do_cmd_result(cmd, repo_path) != 0
|
100
|
+
raise "Unable to create local and tracking developer branch #{dev_branch_name} for #{repo_name}."
|
101
|
+
end
|
102
|
+
cmd = "git push -u origin #{dev_branch_name}"
|
99
103
|
if EbmSharedLib::CL.do_cmd_result(cmd, repo_path) != 0
|
100
104
|
raise "Unable to create local and tracking developer branch #{dev_branch_name} for #{repo_name}."
|
101
105
|
end
|
@@ -117,7 +121,11 @@ module Commands
|
|
117
121
|
end
|
118
122
|
|
119
123
|
# pull any submodules
|
120
|
-
cmd = "git submodule init
|
124
|
+
cmd = "git submodule init"
|
125
|
+
if EbmSharedLib::CL.do_cmd_result(cmd, repo_path) != 0
|
126
|
+
raise "Cloning submodules in repo at #{git_path} failed."
|
127
|
+
end
|
128
|
+
cmd = "git submodule update"
|
121
129
|
if EbmSharedLib::CL.do_cmd_result(cmd, repo_path) != 0
|
122
130
|
raise "Cloning submodules in repo at #{git_path} failed."
|
123
131
|
end
|
data/lib/commands/tag.rb
CHANGED
@@ -65,7 +65,14 @@ module Commands
|
|
65
65
|
repo_name = EbmSharedLib.get_repo_name(repo[:git_path])
|
66
66
|
repo_path = "#{top_dir}/#{repo_name}"
|
67
67
|
if delete_tag
|
68
|
-
cmd = "git tag -d #{tag}
|
68
|
+
cmd = "git tag -d #{tag}"
|
69
|
+
if EbmSharedLib::CL.do_cmd_result(cmd, repo_path) != 0
|
70
|
+
raise "Deleting tag failed for #{repo_name}."
|
71
|
+
end
|
72
|
+
cmd = "git push origin :refs/tags/#{tag}"
|
73
|
+
if EbmSharedLib::CL.do_cmd_result(cmd, repo_path) != 0
|
74
|
+
raise "Deleting tag failed failed for #{repo_name}."
|
75
|
+
end
|
69
76
|
else
|
70
77
|
if commit_and_push
|
71
78
|
# they want to commit whatever has changed and push to current remote
|
@@ -82,7 +89,11 @@ module Commands
|
|
82
89
|
raise "Push failed failed for #{repo_name}."
|
83
90
|
end
|
84
91
|
end
|
85
|
-
cmd = "git tag #{tag}
|
92
|
+
cmd = "git tag #{tag}"
|
93
|
+
if EbmSharedLib::CL.do_cmd_result(cmd, repo_path) != 0
|
94
|
+
raise "Tagging operation failed for #{repo_name}. Make sure you are in the top level #{config_name} directory."
|
95
|
+
end
|
96
|
+
cmd = "git push origin refs/tags/#{tag}"
|
86
97
|
if EbmSharedLib::CL.do_cmd_result(cmd, repo_path) != 0
|
87
98
|
raise "Tagging operation failed for #{repo_name}. Make sure you are in the top level #{config_name} directory."
|
88
99
|
end
|
data/lib/info.rb
CHANGED