From: Junio C Hamano Date: Fri, 5 Aug 2005 04:43:43 +0000 (-0700) Subject: git-init-db: brown paper bag bugfix. X-Git-Tag: v0.99.4~35 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=b03e2d2091153d239063cfc086a840d74a9eadde;p=git.git 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 --- diff --git a/init-db.c b/init-db.c index fcb55f6e..3f53d6c7 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); }