Permalink
Browse files

prevent unset of configs that have not been set

  • Loading branch information...
Simon Chiang authored and pweldon committed Sep 12, 2011
1 parent 89f874e commit 03c3ebdec16f15bc3eced4726eea81e2ad914450
Showing with 5 additions and 2 deletions.
  1. +5 −2 lib/svn2git/migration.rb
View
@@ -222,8 +222,11 @@ def fix_tags
run_command("GIT_COMMITTER_DATE='#{escape_quotes(date)}' git tag -a -m '#{escape_quotes(subject)}' '#{escape_quotes(id)}' '#{escape_quotes(tag)}'")
run_command("git branch -d -r #{tag}")
end
- run_command("git config --local --unset user.name")
- run_command("git config --local --unset user.email")
+
+ unless @tags.empty?
+ run_command("git config --local --unset user.name")
+ run_command("git config --local --unset user.email")
+ end
end
def fix_branches

0 comments on commit 03c3ebd

Please sign in to comment.