Skip to content

Commit

Permalink
Merge branch 'nd/index-pack-error-message' into maint
Browse files Browse the repository at this point in the history
* nd/index-pack-error-message:
  index-pack: report error using the correct variable
  • Loading branch information
Junio C Hamano committed Apr 3, 2014
2 parents 9cbd46a + de983a0 commit 3dd1083
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builtin/index-pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -1291,15 +1291,15 @@ 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);
write_or_die(keep_fd, "\n", 1);
}
if (close(keep_fd) != 0)
die_errno(_("cannot close written keep file '%s'"),
keep_name);
keep_name ? keep_name : name);
report = "keep";
}
}
Expand Down

0 comments on commit 3dd1083

Please sign in to comment.