diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-08-19 14:48:55 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-08-19 14:48:55 -0700 |
commit | 51a22ce1477b991793c20d3143d72f0ae6e38c76 (patch) | |
tree | d771608f4ebc48a899196524534b5912632cd843 /builtin/index-pack.c | |
parent | 4bfab58ce2d47cef9236571cb1451bf3b62241c1 (diff) | |
parent | cb5add58681db299d22cdccd898f9924e740034a (diff) | |
download | git-51a22ce1477b991793c20d3143d72f0ae6e38c76.tar.gz git-51a22ce1477b991793c20d3143d72f0ae6e38c76.tar.xz |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/index-pack.c b/builtin/index-pack.c index 3f1084044..3431de236 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); |