sha1_file: do not add own object directory as alternate
commit539e75069f5c8f0ecf9e99f1163647aa9f92c5bd
authorEphrim Khong <dr.khong@gmail.com>
Tue, 15 Jul 2014 11:29:45 +0000 (15 13:29 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 15 Jul 2014 18:50:15 +0000 (15 11:50 -0700)
tree72305493561d6492a927e7b1e5914b329684058a
parent45067fc973c31953ab283f77f0f91eba9a272624
sha1_file: do not add own object directory as alternate

When adding alternate object directories, we try not to add the
directory of the current repository to avoid cycles.  Unfortunately,
that test was broken, since it compared an absolute with a relative
path.

Signed-off-by: Ephrim Khong <dr.khong@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sha1_file.c
t/t7702-repack-cyclic-alternate.sh [new file with mode: 0755]