Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
user-manual: update for new default --track behavior
[gitweb.git]
/
index-pack.c
diff --git
a/index-pack.c
b/index-pack.c
index 82c8da3683bbda15a5f7476d93c14737617d3e49..8403c36b63c041fe0c81276391a0bbea906e833d 100644
(file)
--- a/
index-pack.c
+++ b/
index-pack.c
@@
-634,7
+634,8
@@
static void final(const char *final_pack_name, const char *curr_pack_name,
write_or_die(keep_fd, keep_msg, keep_msg_len);
write_or_die(keep_fd, "\n", 1);
}
- close(keep_fd);
+ if (close(keep_fd) != 0)
+ die("cannot write keep file");
report = "keep";
}
}