Skip to content

Commit 0055932

Browse files
authored
Merge pull request #3417 from dscho/initialize-core.symlinks-earlier
init: respect core.symlinks before copying the templates
2 parents 42f3463 + 0efd86d commit 0055932

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

builtin/clone.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,7 @@ int cmd_clone(int argc, const char **argv, const char *prefix)
990990
struct transport_ls_refs_options transport_ls_refs_options =
991991
TRANSPORT_LS_REFS_OPTIONS_INIT;
992992

993-
git_config(platform_core_config, NULL);
993+
git_config(git_default_core_config, NULL);
994994

995995
packet_trace_identity("clone");
996996

builtin/column.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ int cmd_column(int argc, const char **argv, const char *prefix)
3434
OPT_END()
3535
};
3636

37-
git_config(platform_core_config, NULL);
37+
git_config(git_default_core_config, NULL);
3838

3939
/* This one is special and must be the first one */
4040
if (argc > 1 && starts_with(argv[1], "--command=")) {

builtin/init-db.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ int init_db(const char *git_dir, const char *real_git_dir,
410410
startup_info->have_repository = 1;
411411

412412
/* Ensure `core.hidedotfiles` is processed */
413-
git_config(platform_core_config, NULL);
413+
git_config(git_default_core_config, NULL);
414414

415415
safe_create_dir(git_dir, 0);
416416

config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1295,7 +1295,7 @@ int git_config_color(char *dest, const char *var, const char *value)
12951295
return 0;
12961296
}
12971297

1298-
static int git_default_core_config(const char *var, const char *value, void *cb)
1298+
int git_default_core_config(const char *var, const char *value, void *cb)
12991299
{
13001300
/* This needs a better name */
13011301
if (!strcmp(var, "core.filemode")) {

config.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ struct config_options {
120120
typedef int (*config_fn_t)(const char *, const char *, void *);
121121

122122
int git_default_config(const char *, const char *, void *);
123+
int git_default_core_config(const char *var, const char *value, void *cb);
123124

124125
/**
125126
* Read a specific file in git-config format.

0 commit comments

Comments
 (0)