Skip to content

Commit e3596ce

Browse files
Corner, Bradleysergiomb2
authored andcommitted
Fix warnings for exit command
1 parent 7869b78 commit e3596ce

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/svn2git/migration.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -261,11 +261,11 @@ def get_branches
261261
end
262262

263263
def get_rebasebranch
264-
get_branches
264+
get_branches
265265
@local = @local.find_all{|l| l == @options[:rebasebranch]}
266266
@remote = @remote.find_all{|r| r.include? @options[:rebasebranch]}
267267

268-
if @local.count > 1
268+
if @local.count > 1
269269
pp "To many matching branches found (#{@local})."
270270
exit 1
271271
elsif @local.count == 0
@@ -452,7 +452,7 @@ def run_command(cmd, exit_on_error=true, printout_output=false)
452452

453453
if exit_on_error && $?.exitstatus != 0
454454
$stderr.puts "command failed:\n#{cmd}"
455-
exit -1
455+
exit(1)
456456
end
457457

458458
ret
@@ -472,7 +472,7 @@ def verify_working_tree_is_clean
472472
status = run_command('git status --porcelain --untracked-files=no')
473473
unless status.strip == ''
474474
puts 'You have local pending changes. The working tree must be clean in order to continue.'
475-
exit -1
475+
exit(1)
476476
end
477477
end
478478

0 commit comments

Comments
 (0)