summaryrefslogtreecommitdiff
path: root/fsck.c
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2021-03-03 15:16:32 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2021-03-03 15:16:32 +0900
commitb5cc90f548375fa8d5ae78a2879eabae78f19ae4 (patch)
tree7b766c3aa988a3d5522e27995343257ccd7b24fb /fsck.c
parentf7231934dc7ec05ec0d13f8d957585c6045b79d6 (diff)
downloadgit-b5cc90f548375fa8d5ae78a2879eabae78f19ae4.tar.gz
git-b5cc90f548375fa8d5ae78a2879eabae78f19ae4.tar.bz2
git-b5cc90f548375fa8d5ae78a2879eabae78f19ae4.zip
Imported Upstream version 2.17.0upstream/2.17.0
Diffstat (limited to 'fsck.c')
-rw-r--r--fsck.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/fsck.c b/fsck.c
index 0b2b93aa..5c8c12dd 100644
--- a/fsck.c
+++ b/fsck.c
@@ -551,7 +551,7 @@ static int fsck_tree(struct tree *item, struct fsck_options *options)
while (desc.size) {
unsigned mode;
- const char *name, *backslash;
+ const char *name;
const struct object_id *oid;
oid = tree_entry_extract(&desc, &name, &mode);
@@ -565,15 +565,6 @@ static int fsck_tree(struct tree *item, struct fsck_options *options)
is_hfs_dotgit(name) ||
is_ntfs_dotgit(name));
has_zero_pad |= *(char *)desc.buffer == '0';
-
- if ((backslash = strchr(name, '\\'))) {
- while (backslash) {
- backslash++;
- has_dotgit |= is_ntfs_dotgit(backslash);
- backslash = strchr(backslash, '\\');
- }
- }
-
if (update_tree_entry_gently(&desc)) {
retval += report(options, &item->object, FSCK_MSG_BAD_TREE, "cannot be parsed as a tree");
break;
@@ -830,7 +821,7 @@ static int fsck_tag_buffer(struct tag *tag, const char *data,
ret = report(options, &tag->object,
FSCK_MSG_TAG_OBJECT_NOT_TAG,
"expected tag got %s",
- typename(type));
+ type_name(type));
goto done;
}
}