diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-01-06 14:17:50 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-01-06 14:17:50 -0800 |
commit | a578ef9e63a2f53ada00beb9d75b23e68061b331 (patch) | |
tree | 71d6606b5fa50d175f30b1719a6fa0b5a8436b63 /tree-walk.c | |
parent | c4117fcb97dbf5bc59d9cff09e7e4c0425fe8c27 (diff) | |
parent | 224c7d70fa14ed44d8e7e3ce1e165e05b7b23725 (diff) | |
download | git-a578ef9e63a2f53ada00beb9d75b23e68061b331.tar.gz |
Merge branch 'js/mingw-loosen-overstrict-tree-entry-checks'
An earlier update to Git for Windows declared that a tree object is
invalid if it has a path component with backslash in it, which was
overly strict, which has been corrected. The only protection the
Windows users need is to prevent such path (or any path that their
filesystem cannot check out) from entering the index.
* js/mingw-loosen-overstrict-tree-entry-checks:
mingw: only test index entries for backslashes, not tree entries
Diffstat (limited to 'tree-walk.c')
-rw-r--r-- | tree-walk.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/tree-walk.c b/tree-walk.c index b3d162051f..d5a8e096a6 100644 --- a/tree-walk.c +++ b/tree-walk.c @@ -43,12 +43,6 @@ static int decode_tree_entry(struct tree_desc *desc, const char *buf, unsigned l strbuf_addstr(err, _("empty filename in tree entry")); return -1; } -#ifdef GIT_WINDOWS_NATIVE - if (protect_ntfs && strchr(path, '\\')) { - strbuf_addf(err, _("filename in tree entry contains backslash: '%s'"), path); - return -1; - } -#endif len = strlen(path) + 1; /* Initialize the descriptor entry */ |