Commit bcfd9386f54f12bf5b294686afbc6bcdad8a39c5

Authored by Jacob Vosmaer
1 parent bfd44948

Fix popen bug in `rake gitlab:satellites:create`

The Satellite#create method no longer sets the `$?` global variable.
Instead, we can use the method return value to test if the satellite was
created successfully
@@ -8,6 +8,7 @@ v 6.8.0 @@ -8,6 +8,7 @@ v 6.8.0
8 - Create branches via API (sponsored by O'Reilly Media) 8 - Create branches via API (sponsored by O'Reilly Media)
9 - Changed permission of gitlab-satellites directory not to be world accessible 9 - Changed permission of gitlab-satellites directory not to be world accessible
10 - Protected branch does not allow force push 10 - Protected branch does not allow force push
  11 + - Fix popen bug in `rake gitlab:satellites:create`
11 12
12 v 6.7.3 13 v 6.7.3
13 - Fix the merge notification email not being sent (Pierre de La Morinerie) 14 - Fix the merge notification email not being sent (Pierre de La Morinerie)
lib/tasks/gitlab/enable_automerge.rake
@@ -27,11 +27,8 @@ namespace :gitlab do @@ -27,11 +27,8 @@ namespace :gitlab do
27 if project.satellite.exists? 27 if project.satellite.exists?
28 puts "exists already".green 28 puts "exists already".green
29 else 29 else
30 - puts ""  
31 - project.satellite.create  
32 -  
33 - print "... "  
34 - if $?.success? 30 + print "\n... "
  31 + if project.satellite.create
35 puts "created".green 32 puts "created".green
36 else 33 else
37 puts "error".red 34 puts "error".red