Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
help: check early if we have a command, if not try a documentation topic
[gitweb.git]
/
index-pack.c
diff --git
a/index-pack.c
b/index-pack.c
index aaba9443ccbab1315e67c0e6bedaa82afe5464fc..5ac91baf98615d7e494550155c1c4d7665ed2dcd 100644
(file)
--- a/
index-pack.c
+++ b/
index-pack.c
@@
-694,6
+694,7
@@
static void final(const char *final_pack_name, const char *curr_pack_name,
if (!from_stdin) {
close(input_fd);
} else {
+ fsync_or_die(output_fd, curr_pack_name);
err = close(output_fd);
if (err)
die("error while closing pack file: %s", strerror(errno));