summaryrefslogtreecommitdiffstats
path: root/path.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-06-03 23:30:34 +0200
committerJunio C Hamano <gitster@pobox.com>2022-06-03 23:30:34 +0200
commitb3b2ddced295c26134568cf879488a921a352865 (patch)
tree2933bae2dd17545280f0bdcf38eca1e03d93d3bf /path.c
parentMerge branch 'ns/batch-fsync' (diff)
parentbundle.h: make "fd" version of read_bundle_header() public (diff)
downloadgit-b3b2ddced295c26134568cf879488a921a352865.tar.xz
git-b3b2ddced295c26134568cf879488a921a352865.zip
Merge branch 'ds/bundle-uri'
Preliminary code refactoring around transport and bundle code. * ds/bundle-uri: bundle.h: make "fd" version of read_bundle_header() public remote: allow relative_url() to return an absolute url remote: move relative_url() http: make http_get_file() external fetch-pack: move --keep=* option filling to a function fetch-pack: add a deref_without_lazy_fetch_extended() dir API: add a generalized path_match_flags() function connect.c: refactor sending of agent & object-format
Diffstat (limited to 'path.c')
-rw-r--r--path.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/path.c b/path.c
index 3236122aad..a3cfcd8a6e 100644
--- a/path.c
+++ b/path.c
@@ -1413,7 +1413,7 @@ int is_ntfs_dotgit(const char *name)
for (;;) {
c = *(name++);
- if (!c || c == '\\' || c == '/' || c == ':')
+ if (!c || is_xplatform_dir_sep(c) || c == ':')
return 1;
if (c != '.' && c != ' ')
return 0;