diff options
author | Junio C Hamano <junkio@cox.net> | 2006-05-02 22:04:34 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-05-02 22:04:34 -0700 |
commit | fd9088a8c74a2d508ff50f53afbca93826603b30 (patch) | |
tree | b8211a4c19ec1659f52612cac6cb6881ca9c41d2 /refs.c | |
parent | Merge branch 'jc/grep' into next (diff) | |
parent | core.prefersymlinkrefs: use symlinks for .git/HEAD (diff) | |
download | tgif-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |