Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
write_pack_file: use correct variable in diagnostic
author
Sun He
<sunheehnus@gmail.com>
Sun, 2 Mar 2014 07:30:11 +0000
(15:30 +0800)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 3 Mar 2014 18:43:40 +0000
(10:43 -0800)
'pack_tmp_name' is the subject of the utime() check, so report it in the
warning, not the uninitialized 'tmpname'
Signed-off-by: Sun He <sunheehnus@gmail.com>
Reviewed-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/pack-objects.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
2f93541
)
diff --git
a/builtin/pack-objects.c
b/builtin/pack-objects.c
index dd117b379ac9d7b58b439a691b90c6cb4f1dac90..f3a44c4f559c5c3d46fbc31411fd0f2d40761521 100644
(file)
--- a/
builtin/pack-objects.c
+++ b/
builtin/pack-objects.c
@@
-783,7
+783,7
@@
static void write_pack_file(void)
utb.modtime = --last_mtime;
if (utime(pack_tmp_name, &utb) < 0)
warning("failed utime() on %s: %s",
utb.modtime = --last_mtime;
if (utime(pack_tmp_name, &utb) < 0)
warning("failed utime() on %s: %s",
-
tmp
name, strerror(errno));
+
pack_tmp_
name, strerror(errno));
}
/* Enough space for "-<sha-1>.pack"? */
}
/* Enough space for "-<sha-1>.pack"? */