Skip to content

Commit 04a77c9

Browse files
committed
fixup! mingw: ensure that core.longPaths is handled *always*
This is no longer necessary (and was fragile to begin with, as many code paths might have been missed). Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 70b5348 commit 04a77c9

31 files changed

+4
-57
lines changed

builtin/archive.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#include "parse-options.h"
1010
#include "pkt-line.h"
1111
#include "sideband.h"
12-
#include "config.h"
1312

1413
static void create_output_file(const char *output_file)
1514
{
@@ -94,7 +93,6 @@ int cmd_archive(int argc, const char **argv, const char *prefix)
9493
OPT_END()
9594
};
9695

97-
git_config(git_default_config, NULL);
9896
argc = parse_options(argc, argv, prefix, local_opts, NULL,
9997
PARSE_OPT_KEEP_ALL);
10098

builtin/bisect--helper.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#include "prompt.h"
1010
#include "quote.h"
1111
#include "revision.h"
12-
#include "config.h"
1312

1413
static GIT_PATH_FUNC(git_path_bisect_terms, "BISECT_TERMS")
1514
static GIT_PATH_FUNC(git_path_bisect_expected_rev, "BISECT_EXPECTED_REV")
@@ -1325,7 +1324,6 @@ int cmd_bisect__helper(int argc, const char **argv, const char *prefix)
13251324
};
13261325
struct bisect_terms terms = { .term_good = NULL, .term_bad = NULL };
13271326

1328-
git_config(git_default_config, NULL);
13291327
argc = parse_options(argc, argv, prefix, options,
13301328
git_bisect_helper_usage,
13311329
PARSE_OPT_KEEP_DASHDASH | PARSE_OPT_KEEP_UNKNOWN_OPT);

builtin/bundle.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#include "parse-options.h"
44
#include "cache.h"
55
#include "bundle.h"
6-
#include "config.h"
76

87
/*
98
* Basic handler for bundle files to connect repositories via sneakernet.
@@ -111,7 +110,6 @@ static int cmd_bundle_verify(int argc, const char **argv, const char *prefix) {
111110
};
112111
char *bundle_file;
113112

114-
git_config(git_default_config, NULL);
115113
argc = parse_options_cmd_bundle(argc, argv, prefix,
116114
builtin_bundle_verify_usage, options, &bundle_file);
117115
/* bundle internals use argv[1] as further parameters */

builtin/check-ref-format.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#include "refs.h"
77
#include "builtin.h"
88
#include "strbuf.h"
9-
#include "config.h"
109

1110
static const char builtin_check_ref_format_usage[] =
1211
"git check-ref-format [--normalize] [<options>] <refname>\n"
@@ -61,7 +60,6 @@ int cmd_check_ref_format(int argc, const char **argv, const char *prefix)
6160
char *to_free = NULL;
6261
int ret = 1;
6362

64-
git_config(git_default_config, NULL);
6563
if (argc == 2 && !strcmp(argv[1], "-h"))
6664
usage(builtin_check_ref_format_usage);
6765

builtin/clone.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -905,8 +905,6 @@ int cmd_clone(int argc, const char **argv, const char *prefix)
905905
struct transport_ls_refs_options transport_ls_refs_options =
906906
TRANSPORT_LS_REFS_OPTIONS_INIT;
907907

908-
git_config(git_default_core_config, NULL);
909-
910908
packet_trace_identity("clone");
911909

912910
git_config(git_clone_config, NULL);

builtin/column.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ int cmd_column(int argc, const char **argv, const char *prefix)
3434
OPT_END()
3535
};
3636

37-
git_config(git_default_core_config, NULL);
38-
3937
/* This one is special and must be the first one */
4038
if (argc > 1 && starts_with(argv[1], "--command=")) {
4139
command = argv[1] + 10;

builtin/credential-store.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#include "credential.h"
55
#include "string-list.h"
66
#include "parse-options.h"
7-
#include "config.h"
87

98
static struct lock_file credential_lock;
109

@@ -166,8 +165,6 @@ int cmd_credential_store(int argc, const char **argv, const char *prefix)
166165

167166
umask(077);
168167

169-
git_config(git_default_config, NULL);
170-
171168
argc = parse_options(argc, (const char **)argv, prefix, options, usage, 0);
172169
if (argc != 1)
173170
usage_with_options(usage, options);

builtin/fetch-pack.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
#include "connect.h"
66
#include "oid-array.h"
77
#include "protocol.h"
8-
#include "config.h"
98

109
static const char fetch_pack_usage[] =
1110
"git fetch-pack [--all] [--stdin] [--quiet | -q] [--keep | -k] [--thin] "
@@ -58,7 +57,6 @@ int cmd_fetch_pack(int argc, const char **argv, const char *prefix)
5857
struct packet_reader reader;
5958
enum protocol_version version;
6059

61-
git_config(git_default_config, NULL);
6260
fetch_if_missing = 0;
6361

6462
packet_trace_identity("fetch-pack");

builtin/get-tar-commit-id.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#include "tar.h"
77
#include "builtin.h"
88
#include "quote.h"
9-
#include "config.h"
109

1110
static const char builtin_get_tar_commit_id_usage[] =
1211
"git get-tar-commit-id";
@@ -28,7 +27,6 @@ int cmd_get_tar_commit_id(int argc, const char **argv, const char *prefix)
2827
if (argc != 1)
2928
usage(builtin_get_tar_commit_id_usage);
3029

31-
git_config(git_default_config, NULL);
3230
n = read_in_full(0, buffer, HEADERSIZE);
3331
if (n < 0)
3432
die_errno("git get-tar-commit-id: read error");

builtin/log.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2437,7 +2437,6 @@ int cmd_cherry(int argc, const char **argv, const char *prefix)
24372437
OPT_END()
24382438
};
24392439

2440-
git_config(git_default_config, NULL);
24412440
argc = parse_options(argc, argv, prefix, options, cherry_usage, 0);
24422441

24432442
switch (argc) {

0 commit comments

Comments
 (0)