summaryrefslogtreecommitdiff
path: root/builtin-init-db.c
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2007-01-26 22:26:10 (GMT)
committerJunio C Hamano <junkio@cox.net>2007-01-28 10:16:46 (GMT)
commit8b5157e40718a2ee1d645c342d93df4e66335479 (patch)
tree3e81ee8c1e122f82254cb8775076dad36c6fcd76 /builtin-init-db.c
parent41b625b047ad5c537ca312d2f07c86bdd783a7b0 (diff)
downloadgit-8b5157e40718a2ee1d645c342d93df4e66335479.zip
git-8b5157e40718a2ee1d645c342d93df4e66335479.tar.gz
git-8b5157e40718a2ee1d645c342d93df4e66335479.tar.bz2
add logref support to git-symbolic-ref
Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-init-db.c')
-rw-r--r--builtin-init-db.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-init-db.c b/builtin-init-db.c
index 1865489..12e43d0 100644
--- a/builtin-init-db.c
+++ b/builtin-init-db.c
@@ -231,7 +231,7 @@ static int create_default_files(const char *git_dir, const char *template_path)
strcpy(path + len, "HEAD");
reinit = !read_ref("HEAD", sha1);
if (!reinit) {
- if (create_symref("HEAD", "refs/heads/master") < 0)
+ if (create_symref("HEAD", "refs/heads/master", NULL) < 0)
exit(1);
}