Skip to content

Commit c01bade

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 aa3c156 + 9011391 commit c01bade

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
@@ -317,8 +317,8 @@ static enum fsync_component parse_fsync_components(const char *var, const char *
317317
return (current & ~negative) | positive;
318318
}
319319

320-
static int git_default_core_config(const char *var, const char *value,
321-
const struct config_context *ctx, void *cb)
320+
int git_default_core_config(const char *var, const char *value,
321+
const struct config_context *ctx, void *cb)
322322
{
323323
/* This needs a better name */
324324
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
@@ -2610,7 +2610,7 @@ int init_db(const char *git_dir, const char *real_git_dir,
26102610
* have set up the repository format such that we can evaluate
26112611
* includeIf conditions correctly in the case of re-initialization.
26122612
*/
2613-
repo_config(the_repository, platform_core_config, NULL);
2613+
repo_config(the_repository, git_default_core_config, NULL);
26142614

26152615
safe_create_dir(the_repository, git_dir, 0);
26162616

0 commit comments

Comments
 (0)