contrib/git-svn: strip 'git-svn-id:' when commiting to SVN
We regenerate and use git-svn-id: whenever we fetch or otherwise commit to remotes/git-svn. We don't actually know what revision number we'll commit to SVN at commit time, so this is useless. It won't throw off things like 'rebuild', though, which knows to only use the last instance of git-svn-id: in a log message Signed-off-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
Eric Wong committed
Mar 3, 2006 at 01:20 UTC
df746c5a81ebe7d7292fe4d1f672d02a5fa6efeb
1 file changed
+3
contrib/git-svn/git-svn.perl
+3
@@ -625,6 +625,9 @@ sub svn_commit_tree {
625
while (<$msg_fh>) {
626
if (!$in_msg) {
627
$in_msg = 1 if (/^\s*$/);
628
+ } elsif (/^git-svn-id: /) {
629
+ # skip this, we regenerate the correct one
630
+ # on re-fetch anyways
631
} else {
632
print $msg $_ or croak $!;
633
}