]> git.ipfire.org Git - thirdparty/git.git/blobdiff - diff-lib.c
Use strbuf in http code
[thirdparty/git.git] / diff-lib.c
index f8e936ae1008fdb7ef8e1722afb839d84c724f6c..d85d8f34ba055ad7e02bf5d61ae4a675ce0be1d3 100644 (file)
@@ -231,7 +231,7 @@ static int handle_diff_files_args(struct rev_info *revs,
 static int is_outside_repo(const char *path, int nongit, const char *prefix)
 {
        int i;
-       if (nongit || !strcmp(path, "-") || path[0] == '/')
+       if (nongit || !strcmp(path, "-") || is_absolute_path(path))
                return 1;
        if (prefixcmp(path, "../"))
                return 0;