We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 06229a6 + 6127ff6 commit 648d9c1Copy full SHA for 648d9c1
setup.c
@@ -29,7 +29,7 @@ static int abspath_part_inside_repo(char *path)
29
return -1;
30
wtlen = strlen(work_tree);
31
len = strlen(path);
32
- off = 0;
+ off = offset_1st_component(path);
33
34
/* check if work tree is already the prefix */
35
if (wtlen <= len && !strncmp(path, work_tree, wtlen)) {
@@ -45,7 +45,7 @@ static int abspath_part_inside_repo(char *path)
45
off = wtlen;
46
}
47
path0 = path;
48
- path += offset_1st_component(path) + off;
+ path += off;
49
50
/* check each '/'-terminated level */
51
while (*path) {
0 commit comments