contrib/git-svn: strip 'git-svn-id:' when commiting to SVN
[gitweb.git] / contrib / git-svn / git-svn.perl
index 67368a502b79390e1749b849f61182622d72da0e..edae9d4dae2e8736a04108ab486128fb39222920 100755 (executable)
@@ -625,6 +625,9 @@ sub svn_commit_tree {
                while (<$msg_fh>) {
                        if (!$in_msg) {
                                $in_msg = 1 if (/^\s*$/);
+                       } elsif (/^git-svn-id: /) {
+                               # skip this, we regenerate the correct one
+                               # on re-fetch anyways
                        } else {
                                print $msg $_ or croak $!;
                        }