Skip to content

Commit 12a1e71

Browse files
dschoGit for Windows Build Agent
authored andcommitted
Merge pull request #3417 from dscho/initialize-core.symlinks-earlier
init: respect core.symlinks before copying the templates
2 parents 434736e + 98465e9 commit 12a1e71

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

environment.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,8 @@ static enum fsync_component parse_fsync_components(const char *var, const char *
324324
return (current & ~negative) | positive;
325325
}
326326

327-
static int git_default_core_config(const char *var, const char *value,
328-
const struct config_context *ctx, void *cb)
327+
int git_default_core_config(const char *var, const char *value,
328+
const struct config_context *ctx, void *cb)
329329
{
330330
/* This needs a better name */
331331
if (!strcmp(var, "core.filemode")) {

environment.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ const char *strip_namespace(const char *namespaced_ref);
106106

107107
int git_default_config(const char *, const char *,
108108
const struct config_context *, void *);
109+
int git_default_core_config(const char *var, const char *value,
110+
const struct config_context *ctx, void *cb);
109111

110112
/*
111113
* TODO: All the below state either explicitly or implicitly relies on

setup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2618,7 +2618,7 @@ int init_db(const char *git_dir, const char *real_git_dir,
26182618
* have set up the repository format such that we can evaluate
26192619
* includeIf conditions correctly in the case of re-initialization.
26202620
*/
2621-
repo_config(the_repository, platform_core_config, NULL);
2621+
repo_config(the_repository, git_default_core_config, NULL);
26222622

26232623
safe_create_dir(the_repository, git_dir, 0);
26242624

0 commit comments

Comments
 (0)