summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
bfb73b2)
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>
}
memcpy(path, git_dir, len);
}
memcpy(path, git_dir, len);
copy_templates_1(path, len,
template_path, template_len,
dir);
copy_templates_1(path, len,
template_path, template_len,
dir);