summaryrefslogtreecommitdiff
path: root/sha1_file.c
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2009-04-28 00:32:25 +0200
committerJunio C Hamano <gitster@pobox.com>2009-04-29 16:50:07 -0700
commit348df16679cf35b7bba7afea99638e7d81dc3d33 (patch)
tree81bd57136af669f74c387061e6cd3dd502e23882 /sha1_file.c
parent26e47f25402ad51c6cfa1cd784a3431dd00deeb2 (diff)
downloadgit-348df16679cf35b7bba7afea99638e7d81dc3d33.tar.gz
Rename core.unreliableHardlinks to core.createObject
"Unreliable hardlinks" is a misleading description for what is happening. So rename it to something less misleading. Suggested by Linus Torvalds. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sha1_file.c')
-rw-r--r--sha1_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sha1_file.c b/sha1_file.c
index 11969fc161..f708cf4f67 100644
--- a/sha1_file.c
+++ b/sha1_file.c
@@ -2225,7 +2225,7 @@ int move_temp_to_file(const char *tmpfile, const char *filename)
{
int ret = 0;
- if (unreliable_hardlinks)
+ if (object_creation_mode == OBJECT_CREATION_USES_RENAMES)
goto try_rename;
else if (link(tmpfile, filename))
ret = errno;