Merge branch 'js/realpath-pathdup-fix'
[gitweb.git] / worktree.c
index d7b911aac730001b466379c26faa390fb21a5bfb..fa7bc67a50a6d52116b0ca994b473668998f1c3f 100644 (file)
@@ -255,7 +255,7 @@ struct worktree *find_worktree(struct worktree **list,
                return wt;
 
        arg = prefix_filename(prefix, strlen(prefix), arg);
-       path = real_pathdup(arg);
+       path = real_pathdup(arg, 1);
        for (; *list; list++)
                if (!fspathcmp(path, real_path((*list)->path)))
                        break;