Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'nd/index-pack-error-message'
author
Junio C Hamano
<gitster@pobox.com>
Tue, 25 Mar 2014 18:08:19 +0000
(11:08 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 25 Mar 2014 18:08:19 +0000
(11:08 -0700)
* nd/index-pack-error-message:
index-pack: report error using the correct variable
builtin/index-pack.c
patch
|
blob
|
history
raw
(from parent 1:
66d9133
)
diff --git
a/builtin/index-pack.c
b/builtin/index-pack.c
index a6b1c17996da28cef97560378e7586bbf1bd8b6b..b9f6e12c0e91635eafd8510dc7cf20d6c3e58433 100644
(file)
--- a/
builtin/index-pack.c
+++ b/
builtin/index-pack.c
@@
-1291,7
+1291,7
@@
static void final(const char *final_pack_name, const char *curr_pack_name,
if (keep_fd < 0) {
if (errno != EEXIST)
die_errno(_("cannot write keep file '%s'"),
- keep_name);
+ keep_name
? keep_name : name
);
} else {
if (keep_msg_len > 0) {
write_or_die(keep_fd, keep_msg, keep_msg_len);
@@
-1299,7
+1299,7
@@
static void final(const char *final_pack_name, const char *curr_pack_name,
}
if (close(keep_fd) != 0)
die_errno(_("cannot close written keep file '%s'"),
-
keep_
name);
+
keep_name ? keep_name :
name);
report = "keep";
}
}