author | Brandon Casey <casey@nrlssc.navy.mil> | |
Tue, 5 Aug 2008 18:01:50 +0000 (13:01 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 6 Aug 2008 04:21:20 +0000 (21:21 -0700) | ||
commit | 3d32a46b247222a97007419fa865efce959b002d | |
tree | e4f7d85bf8a4acc5f1726f2881c2b848bb5d0320 | tree | snapshot |
parent | 1127c51cfe09f0d7d26869e7a895190214ce049a | commit | diff |
Teach fsck and prune that tmp_obj_ file names may not be 14 bytes long
As Shawn pointed out, not all temporary file creation routines can
ensure that the generated temporary file is of a certain length.
e.g. Java's createTempFile(prefix, suffix). So just depend on the
prefix 'tmp_obj_' for detection.
Update prune, and fix the "fix" introduced by a08c53a1 :)
Signed-off-by: Brandon "appendixless" Casey <casey@nrlssc.navy.mil>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
As Shawn pointed out, not all temporary file creation routines can
ensure that the generated temporary file is of a certain length.
e.g. Java's createTempFile(prefix, suffix). So just depend on the
prefix 'tmp_obj_' for detection.
Update prune, and fix the "fix" introduced by a08c53a1 :)
Signed-off-by: Brandon "appendixless" Casey <casey@nrlssc.navy.mil>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-fsck.c | diff | blob | history | |
builtin-prune.c | diff | blob | history |