diff options
author | Junio C Hamano <gitster@pobox.com> | 2014-03-25 11:08:19 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-03-25 11:08:19 -0700 |
commit | 0e8c09263e87c548de006cdb6af035d42f845087 (patch) | |
tree | a233ed16bab9aa7cbe804d039e6d8a8ac4f52f09 /builtin/index-pack.c | |
parent | 66d913367d2344f313210e6441bd41e975a47b1d (diff) | |
parent | de983a0a1817437fbb0db938ecf91f73023a5f87 (diff) | |
download | git-0e8c09263e87c548de006cdb6af035d42f845087.tar.gz |
Merge branch 'nd/index-pack-error-message'
* nd/index-pack-error-message:
index-pack: report error using the correct variable
Diffstat (limited to 'builtin/index-pack.c')
-rw-r--r-- | builtin/index-pack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/index-pack.c b/builtin/index-pack.c index a6b1c17996..b9f6e12c0e 100644 --- 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"; } } |