summaryrefslogtreecommitdiff
path: root/refs.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-05-02 00:40:24 -0700
committerJunio C Hamano <junkio@cox.net>2006-05-02 20:09:56 -0700
commit9f0bb90d161edf8c43f5261d12bf83f14eb02ff4 (patch)
tree5c97ff538c0b92d94520336bad695b1b62821a2a /refs.c
parent3d990f110c2e5b8df83f6ab3ef83497f43c7fd47 (diff)
downloadgit-9f0bb90d161edf8c43f5261d12bf83f14eb02ff4.tar.gz
core.prefersymlinkrefs: use symlinks for .git/HEAD
When inspecting a project whose build infrastructure used to assume that .git/HEAD is a symlink ref, core.prefersymlinkrefs in the config file of such a project would help to bisect its history. Signed-off-by: Junio C Hamano <junkio@cox.net>
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;