Permalink
Browse files

Better exit status.

  • Loading branch information...
nirvdrum committed Jan 25, 2011
1 parent 26ba5ff commit a59cb83ac74caca9407db20c67a66db50556ecd8
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/svn2git/migration.rb
View
@@ -242,12 +242,12 @@ def show_help_message(msg)
puts @opts.help
exit
end
def verify_working_tree_is_clean
status = run_command('git status --porcelain --untracked-files=no')
unless status.strip == ''
puts 'You have local pending changes. The working tree must be clean in order to continue.'
exit
exit -1
end
end

0 comments on commit a59cb83

Please sign in to comment.