From b03e2d2091153d239063cfc086a840d74a9eadde Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Thu, 4 Aug 2005 21:43:43 -0700 Subject: [PATCH] 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 --- init-db.c | 1 + 1 file changed, 1 insertion(+) diff --git a/init-db.c b/init-db.c index fcb55f6e7..3f53d6c77 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); } -- 2.30.2