pathspec: drop "lone : means no pathspec" from get_pathspec()
[gitweb.git] / setup.c
diff --git a/setup.c b/setup.c
index 5048252d78638c2c6adcf8807442728ef4f37a5e..84f71d5ee0e2eebac0be67660590874d4d4dd24d 100644 (file)
--- a/setup.c
+++ b/setup.c
@@ -197,9 +197,6 @@ const char *prefix_pathspec(const char *prefix, int prefixlen, const char *elt)
                }
                if (*copyfrom == ')')
                        copyfrom++;
-       } else if (!elt[1]) {
-               /* Just ':' -- no element! */
-               return NULL;
        } else {
                /* shorthand */
                for (copyfrom = elt + 1;