Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'nd/index-pack-error-message' into maint
author
Junio C Hamano
<gitster@pobox.com>
Thu, 3 Apr 2014 20:39:04 +0000
(13:39 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 3 Apr 2014 20:39:04 +0000
(13:39 -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:
9cbd46a
)
diff --git
a/builtin/index-pack.c
b/builtin/index-pack.c
index 2f37a38fbcdf131ab5897e47728c5773ba36b861..fa74972886cc8e6c0f6308e28de26a13cae6a2b7 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";
}
}