diff options
author | Junio C Hamano <junkio@cox.net> | 2006-10-04 21:37:15 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-10-04 21:37:15 -0700 |
commit | 422b4a0e03658d0933a7abc149f175735ea9c4b5 (patch) | |
tree | b670900cd46d5198d6b1246950c2312d02f8f115 | |
parent | 03a182107fdb36170a72b8a3d94de2b52e3f6668 (diff) | |
download | git-422b4a0e03658d0933a7abc149f175735ea9c4b5.tar.gz |
pack-refs: call fflush before fsync.
Signed-off-by: Junio C Hamano <junkio@cox.net>
-rw-r--r-- | builtin-pack-refs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin-pack-refs.c b/builtin-pack-refs.c index ede47434e3..23d0d0720e 100644 --- a/builtin-pack-refs.c +++ b/builtin-pack-refs.c @@ -89,6 +89,7 @@ int cmd_pack_refs(int argc, const char **argv, const char *prefix) die("unable to create ref-pack file structure (%s)", strerror(errno)); for_each_ref(handle_one_ref, &cbdata); + fflush(cbdata.refs_file); fsync(fd); fclose(cbdata.refs_file); if (commit_lock_file(&packed) < 0) |