X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=git-svnimport.perl;h=d3ad5b904f3d025aaf89aa5a7ef2e6464fd9b5b8;hb=e598c5177e439271e8bd81ef2a689a3ab0db80e6;hp=b73d6494d80fe5ee19e1d95971e2e4e64e980dea;hpb=b9dcf846e20ed5287e239c9a0942c5d150081bab;p=git.git diff --git a/git-svnimport.perl b/git-svnimport.perl index b73d6494d..d3ad5b904 100755 --- a/git-svnimport.perl +++ b/git-svnimport.perl @@ -49,7 +49,7 @@ getopts("A:b:C:dDFhiI:l:mM:o:rs:t:T:SP:R:uv") or usage(); usage if $opt_h; my $tag_name = $opt_t || "tags"; -my $trunk_name = $opt_T || "trunk"; +my $trunk_name = defined $opt_T ? $opt_T : "trunk"; my $branch_name = $opt_b || "branches"; my $project_name = $opt_P || ""; $project_name = "/" . $project_name if ($project_name); @@ -873,7 +873,7 @@ sub commit { $dest =~ tr/_/\./ if $opt_u; - system('git-tag', $dest, $cid) == 0 + system('git-tag', '-f', $dest, $cid) == 0 or die "Cannot create tag $dest: $!\n"; print "Created tag '$dest' on '$branch'\n" if $opt_v;