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 | |
parent | Merge branch 'ps/guess-repo-name-at-root' (diff) | |
parent | sha1_file.c: rename move_temp_to_file() to finalize_object_file() (diff) | |
download | tgif-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')
-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 3f10840441..3431de2362 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); |