summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-08-05 04:43:43 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-08-05 04:43:43 (GMT)
commitb03e2d2091153d239063cfc086a840d74a9eadde (patch)
tree1405f3a66c61bc6ba79c0bfb36f8f7d1b83ff6b7
parent7f47e72fb3b947db4ffde56a40d999c2fe99ead2 (diff)
downloadgit-b03e2d2091153d239063cfc086a840d74a9eadde.zip
git-b03e2d2091153d239063cfc086a840d74a9eadde.tar.gz
git-b03e2d2091153d239063cfc086a840d74a9eadde.tar.bz2
git-init-db: brown paper bag bugfix.
OK, I admit I am an idiot. I ended up creating bunch of garbage directories like .git/HEADbranch/ .git/HEADrefs/... Signed-off-by: Junio C Hamano <junkio@cox.net>
-rw-r--r--init-db.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/init-db.c b/init-db.c
index fcb55f6..3f53d6c 100644
--- a/init-db.c
+++ b/init-db.c
@@ -189,6 +189,7 @@ static void create_default_files(const char *git_dir)
exit(1);
}
}
+ path[len] = 0;
copy_templates(path);
}