summaryrefslogtreecommitdiff
path: root/tree-walk.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-01-06 22:17:50 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-01-06 22:17:50 (GMT)
commita578ef9e63a2f53ada00beb9d75b23e68061b331 (patch)
tree71d6606b5fa50d175f30b1719a6fa0b5a8436b63 /tree-walk.c
parentc4117fcb97dbf5bc59d9cff09e7e4c0425fe8c27 (diff)
parent224c7d70fa14ed44d8e7e3ce1e165e05b7b23725 (diff)
downloadgit-a578ef9e63a2f53ada00beb9d75b23e68061b331.zip
git-a578ef9e63a2f53ada00beb9d75b23e68061b331.tar.gz
git-a578ef9e63a2f53ada00beb9d75b23e68061b331.tar.bz2
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.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/tree-walk.c b/tree-walk.c
index b3d1620..d5a8e09 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 */