write_pack_file: use correct variable in diagnostic
[gitweb.git] / builtin / pack-objects.c
index dd117b379ac9d7b58b439a691b90c6cb4f1dac90..f3a44c4f559c5c3d46fbc31411fd0f2d40761521 100644 (file)
@@ -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",
-                                               tmpname, strerror(errno));
+                                               pack_tmp_name, strerror(errno));
                        }
 
                        /* Enough space for "-<sha-1>.pack"? */