Update documentation for git-format-patch
[gitweb.git] / connect.c
index 6a8f8a6a24dd8894cfcb7e89d8952a9a595d5200..54f7bf7915d199b4d1aa449dca018e8b78593368 100644 (file)
--- a/connect.c
+++ b/connect.c
@@ -100,7 +100,7 @@ int path_match(const char *path, int nr, char **match)
                if (pathlen > len && path[pathlen - len - 1] != '/')
                        continue;
                *s = 0;
-               return 1;
+               return (i + 1);
        }
        return 0;
 }