mirror of
https://github.com/git/git
synced 2024-08-27 19:49:21 +00:00
[PATCH] Fix git-init-db creating crap directories.
The base target directory for the templates copying was initialized to git_dir, but git_dir[len] is not zero but / at the time we do the initialization. This is not what we want for our target directory string since we pass it to mkdir(), so make it zero-terminated manually. Signed-off-by: Petr Baudis <pasky@suse.cz> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
bfb73b2ebc
commit
1f961c196c
Loading…
Reference in a new issue