gitscape 1.6.4 → 1.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/gitscape/base.rb +11 -11
- data/lib/gitscape/version.rb +1 -1
- metadata +3 -3
data/lib/gitscape/base.rb
CHANGED
@@ -212,6 +212,9 @@ class Gitscape::Base
|
|
212
212
|
# Check if the working copy is clean, if not, exit
|
213
213
|
exit 1 unless git_working_copy_is_clean
|
214
214
|
|
215
|
+
# Do a git fetch to ensure everything all refs are sync with origin
|
216
|
+
puts `git fetch`
|
217
|
+
|
215
218
|
# Get the right release_branch_name to merge
|
216
219
|
current_version_number = live_iteration
|
217
220
|
new_version_number = current_version_number + 1
|
@@ -236,17 +239,14 @@ class Gitscape::Base
|
|
236
239
|
end
|
237
240
|
end
|
238
241
|
|
239
|
-
# Checkout
|
242
|
+
# Checkout and pull release_branch
|
240
243
|
puts `git checkout #{release_branch}`
|
241
244
|
puts `git pull origin #{release_branch}`
|
242
245
|
|
243
|
-
# Checkout live
|
246
|
+
# Checkout and pull live
|
244
247
|
puts `git checkout live`
|
245
248
|
puts `git pull origin live`
|
246
249
|
|
247
|
-
# Record the revision of live used for the rollback tag
|
248
|
-
live_rollback_revision = `git log -n1 --oneline`.scan(/(^[^ ]+) .*$/).flatten[0]
|
249
|
-
|
250
250
|
merge_options = "--no-ff -s recursive -Xignore-space-change"
|
251
251
|
|
252
252
|
# Merge the release branch into live
|
@@ -261,11 +261,11 @@ class Gitscape::Base
|
|
261
261
|
end
|
262
262
|
|
263
263
|
# Ensure there is zero diff between what was tested on origin/qa and the new live
|
264
|
-
critical_diff = `git diff
|
264
|
+
critical_diff = `git diff live origin/qa`
|
265
265
|
if critical_diff.length > 0
|
266
|
-
puts "This live merge has code that was not on the qa branch
|
266
|
+
puts "\n!!! This live merge has code that was not on the qa branch !!!\nDiff:"
|
267
267
|
puts critical_diff
|
268
|
-
puts "Run the command 'git reset --hard' to undo the merge, and raise this error with Phil and others involved to determine
|
268
|
+
puts "!!! Run the command 'git reset --hard' to undo the merge, and raise this error with Phil and others involved to determine next step !!!"
|
269
269
|
exit 3
|
270
270
|
end
|
271
271
|
|
@@ -286,7 +286,7 @@ class Gitscape::Base
|
|
286
286
|
end
|
287
287
|
|
288
288
|
# Tag the state of live for both release and rollback
|
289
|
-
puts `git tag rollback-to/i#{current_version_number}
|
289
|
+
puts `git tag rollback-to/i#{current_version_number} live~`
|
290
290
|
if !$?.success? then
|
291
291
|
puts "=== WARNING: Failed to create rollback-to/i#{current_version_number} tag"
|
292
292
|
end
|
@@ -304,9 +304,9 @@ class Gitscape::Base
|
|
304
304
|
end
|
305
305
|
end
|
306
306
|
|
307
|
-
def tag_cleanup options
|
307
|
+
def tag_cleanup options
|
308
308
|
# Handle default options
|
309
|
-
options[:push] =
|
309
|
+
options[:push] = false if options[:push].nil?
|
310
310
|
|
311
311
|
# Do a fetch in order to ensure we have all the latest tags
|
312
312
|
`git fetch`
|
data/lib/gitscape/version.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 6
|
8
|
-
-
|
9
|
-
version: 1.6.
|
8
|
+
- 5
|
9
|
+
version: 1.6.5
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Jon Botelho
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2013-05-
|
18
|
+
date: 2013-05-16 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|