Skip to content

Commit fc891f2

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 46f4595 + b7a3f01 commit fc891f2

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
@@ -107,6 +107,8 @@ const char *strip_namespace(const char *namespaced_ref);
107107

108108
int git_default_config(const char *, const char *,
109109
const struct config_context *, void *);
110+
int git_default_core_config(const char *var, const char *value,
111+
const struct config_context *ctx, void *cb);
110112

111113
/*
112114
* 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
@@ -2708,7 +2708,7 @@ int init_db(const char *git_dir, const char *real_git_dir,
27082708
* have set up the repository format such that we can evaluate
27092709
* includeIf conditions correctly in the case of re-initialization.
27102710
*/
2711-
repo_config(the_repository, platform_core_config, NULL);
2711+
repo_config(the_repository, git_default_core_config, NULL);
27122712

27132713
safe_create_dir(the_repository, git_dir, 0);
27142714

0 commit comments

Comments
 (0)