Mercurial > hg-stable
diff tests/test-git-export.t @ 19875:c172660eee01 stable
patch: Fix nullid for binary git diffs (issue4054)
The index for an empty file in git is not 0, but sha-1("blobl 0\0").
author | Johan Bjork <jbjoerk@gmail.com> |
---|---|
date | Mon, 07 Oct 2013 17:47:19 -0400 |
parents | 2330d97e7707 |
children | 1184edaead7a |
line wrap: on
line diff
--- a/tests/test-git-export.t Tue Oct 01 16:55:20 2013 -0700 +++ b/tests/test-git-export.t Mon Oct 07 17:47:19 2013 -0400 @@ -113,7 +113,7 @@ $ cat b.diff diff --git a/binfile.bin b/binfile.bin new file mode 100644 - index 0000000000000000000000000000000000000000..37ba3d1c6f17137d9c5f5776fa040caf5fe73ff9 + index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..37ba3d1c6f17137d9c5f5776fa040caf5fe73ff9 GIT binary patch literal 593 zc$@)I0<QguP)<h;3K|Lk000e1NJLTq000mG000mO0ssI2kdbIM00009a7bBm000XU