X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=path.c;h=4d889473a78a2c6fa38a0b54a48fe55bd83e9b02;hb=ae2b0f15180d4b044828c836bcab6a990efa5c8e;hp=84b3272d94dbc301131d55660be41d5150a1cdef;hpb=bd22c904a0f1c88a3a7bfa96bbf690de2f5cb278;p=git.git diff --git a/path.c b/path.c index 84b3272d..4d889473 100644 --- a/path.c +++ b/path.c @@ -181,7 +181,7 @@ char *enter_repo(char *path, int strict) return NULL; if (strict) { - if((path[0] != '/') || chdir(path) < 0) + if (chdir(path) < 0) return NULL; } else {