Allow the test suite to pass in a directory whose name contains spaces
[gitweb.git] / path.c
diff --git a/path.c b/path.c
index c1cb1cf6273f4a5a7ed91d495c55a7d283497460..0349a0ab7b8656130df89ef007f5921797cdab3e 100644 (file)
--- a/path.c
+++ b/path.c
@@ -1241,6 +1241,11 @@ int is_ntfs_dotgit(const char *name)
                }
 }
 
+int looks_like_command_line_option(const char *str)
+{
+       return str && str[0] == '-';
+}
+
 char *xdg_config_home(const char *filename)
 {
        const char *home, *config_home;