summaryrefslogtreecommitdiff
path: root/builtin/index-pack.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-08-19 21:48:55 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-08-19 21:48:55 (GMT)
commit51a22ce1477b991793c20d3143d72f0ae6e38c76 (patch)
treed771608f4ebc48a899196524534b5912632cd843 /builtin/index-pack.c
parent4bfab58ce2d47cef9236571cb1451bf3b62241c1 (diff)
parentcb5add58681db299d22cdccd898f9924e740034a (diff)
downloadgit-51a22ce1477b991793c20d3143d72f0ae6e38c76.zip
git-51a22ce1477b991793c20d3143d72f0ae6e38c76.tar.gz
git-51a22ce1477b991793c20d3143d72f0ae6e38c76.tar.bz2
Merge branch 'jc/finalize-temp-file'
Long overdue micro clean-up. * jc/finalize-temp-file: sha1_file.c: rename move_temp_to_file() to finalize_object_file()
Diffstat (limited to 'builtin/index-pack.c')
-rw-r--r--builtin/index-pack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/index-pack.c b/builtin/index-pack.c
index 3f10840..3431de2 100644
--- a/builtin/index-pack.c
+++ b/builtin/index-pack.c
@@ -1421,7 +1421,7 @@ static void final(const char *final_pack_name, const char *curr_pack_name,
get_object_directory(), sha1_to_hex(sha1));
final_pack_name = name;
}
- if (move_temp_to_file(curr_pack_name, final_pack_name))
+ if (finalize_object_file(curr_pack_name, final_pack_name))
die(_("cannot store pack file"));
} else if (from_stdin)
chmod(final_pack_name, 0444);
@@ -1432,7 +1432,7 @@ static void final(const char *final_pack_name, const char *curr_pack_name,
get_object_directory(), sha1_to_hex(sha1));
final_index_name = name;
}
- if (move_temp_to_file(curr_index_name, final_index_name))
+ if (finalize_object_file(curr_index_name, final_index_name))
die(_("cannot store index file"));
} else
chmod(final_index_name, 0444);