Skip to content

Commit 48acaa2

Browse files
committed
Merge pull request #3417 from dscho/initialize-core.symlinks-earlier
init: respect core.symlinks before copying the templates
2 parents 5521650 + 404d93b commit 48acaa2

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

config.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1387,8 +1387,8 @@ int git_config_color(char *dest, const char *var, const char *value)
13871387
return 0;
13881388
}
13891389

1390-
static int git_default_core_config(const char *var, const char *value,
1391-
const struct config_context *ctx, void *cb)
1390+
int git_default_core_config(const char *var, const char *value,
1391+
const struct config_context *ctx, void *cb)
13921392
{
13931393
/* This needs a better name */
13941394
if (!strcmp(var, "core.filemode")) {

config.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ typedef int (*config_fn_t)(const char *, const char *,
167167

168168
int git_default_config(const char *, const char *,
169169
const struct config_context *, void *);
170+
int git_default_core_config(const char *var, const char *value,
171+
const struct config_context *ctx, void *cb);
170172

171173
/**
172174
* Read a specific file in git-config format.

setup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2411,7 +2411,7 @@ int init_db(const char *git_dir, const char *real_git_dir,
24112411
* have set up the repository format such that we can evaluate
24122412
* includeIf conditions correctly in the case of re-initialization.
24132413
*/
2414-
git_config(platform_core_config, NULL);
2414+
git_config(git_default_core_config, NULL);
24152415

24162416
safe_create_dir(git_dir, 0);
24172417

0 commit comments

Comments
 (0)