diff options
author | James Y Knight <foom@fuhm.net> | 2007-05-24 00:37:06 -0400 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-05-26 01:17:58 -0700 |
commit | 20b3d206acbbb042c7ad5f42d36ff8d036a538c5 (patch) | |
tree | 445101c83abb5dc70d9abc7418cd13aa28db01d7 /git-svn.perl | |
parent | a23bfaed7da90ccdc75cbfd0099741080381f60a (diff) | |
download | git-20b3d206acbbb042c7ad5f42d36ff8d036a538c5.tar.gz |
Fix git-svn to handle svn not reporting the md5sum of a file, and test.
Acked-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-svn.perl')
-rwxr-xr-x | git-svn.perl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-svn.perl b/git-svn.perl index eda9969f50..fa46236ae8 100755 --- a/git-svn.perl +++ b/git-svn.perl @@ -2477,7 +2477,7 @@ sub close_file { $md5->addfile($fh); my $got = $md5->hexdigest; die "Checksum mismatch: $path\n", - "expected: $exp\n got: $got\n" if ($got ne $exp); + "expected: $exp\n got: $got\n" if (defined $exp && $got ne $exp); sysseek($fh, 0, 0) or croak $!; if ($fb->{mode_b} == 120000) { sysread($fh, my $buf, 5) == 5 or croak $!; |