summaryrefslogtreecommitdiff
path: root/refs.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2006-05-02 22:04:34 -0700
committerLibravatar Junio C Hamano <junkio@cox.net>2006-05-02 22:04:34 -0700
commitfd9088a8c74a2d508ff50f53afbca93826603b30 (patch)
treeb8211a4c19ec1659f52612cac6cb6881ca9c41d2 /refs.c
parentMerge branch 'jc/grep' into next (diff)
parentcore.prefersymlinkrefs: use symlinks for .git/HEAD (diff)
downloadtgif-fd9088a8c74a2d508ff50f53afbca93826603b30.tar.xz
Merge branch 'jc/symref' into next
* jc/symref: core.prefersymlinkrefs: use symlinks for .git/HEAD
Diffstat (limited to 'refs.c')
-rw-r--r--refs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/refs.c b/refs.c
index 03398ccc53..275b914b2b 100644
--- a/refs.c
+++ b/refs.c
@@ -76,8 +76,8 @@ int create_symref(const char *git_HEAD, const char *refs_heads_master)
char ref[1000];
int fd, len, written;
-#ifdef USE_SYMLINK_HEAD
- if (!only_use_symrefs) {
+#ifndef NO_SYMLINK_HEAD
+ if (prefer_symlink_refs) {
unlink(git_HEAD);
if (!symlink(refs_heads_master, git_HEAD))
return 0;