Better handling of .git suffixes
[userv-utils] / git-daemon / read-urlmap
index 0fd760f..696ee65 100644 (file)
@@ -34,7 +34,8 @@ fail "no config ??" unless @ARGV;
 fail "no specpath ??" unless length $specpath;
 
 our $uri = "git://$spechost/$specpath";
-our $repo_regexp= '^/*(\\w[-+._0-9A-Za-z]*)$';  # stupid emacs ';
+
+our $repo_regexp= '^(\\w[-+._0-9A-Za-z]*/?\.git)$';  # stupid emacs ';
 our $check_export= 0;
 
 our ($serve_user, $serve_dir, $serve_repo);