aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-08-04 21:43:43 -0700
committerJunio C Hamano <junkio@cox.net>2005-08-04 21:43:43 -0700
commitb03e2d2091153d239063cfc086a840d74a9eadde (patch)
tree1405f3a66c61bc6ba79c0bfb36f8f7d1b83ff6b7
parent7f47e72fb3b947db4ffde56a40d999c2fe99ead2 (diff)
downloadgit-b03e2d2091153d239063cfc086a840d74a9eadde.tar.gz
git-b03e2d2091153d239063cfc086a840d74a9eadde.tar.xz
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 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);
}