mirror of
https://github.com/git-for-windows/git.git
synced 2026-03-22 23:22:15 -05:00
Merge pull request #3417 from dscho/initialize-core.symlinks-earlier
init: respect core.symlinks before copying the templates
This commit is contained in:
@@ -418,7 +418,7 @@ int init_db(const char *git_dir, const char *real_git_dir,
|
||||
startup_info->have_repository = 1;
|
||||
|
||||
/* Ensure `core.hidedotfiles` is processed */
|
||||
git_config(platform_core_config, NULL);
|
||||
git_config(git_default_core_config, NULL);
|
||||
|
||||
safe_create_dir(git_dir, 0);
|
||||
|
||||
|
||||
2
config.c
2
config.c
@@ -1560,7 +1560,7 @@ int git_config_color(char *dest, const char *var, const char *value)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int git_default_core_config(const char *var, const char *value, void *cb)
|
||||
int git_default_core_config(const char *var, const char *value, void *cb)
|
||||
{
|
||||
/* This needs a better name */
|
||||
if (!strcmp(var, "core.filemode")) {
|
||||
|
||||
1
config.h
1
config.h
@@ -132,6 +132,7 @@ struct config_options {
|
||||
typedef int (*config_fn_t)(const char *, const char *, void *);
|
||||
|
||||
int git_default_config(const char *, const char *, void *);
|
||||
int git_default_core_config(const char *var, const char *value, void *cb);
|
||||
|
||||
/**
|
||||
* Read a specific file in git-config format.
|
||||
|
||||
Reference in New Issue
Block a user