chiark
/
gitweb
/
~mdw
/
userv-utils
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Better handling of .git suffixes
[userv-utils]
/
git-daemon
/
read-urlmap
diff --git
a/git-daemon/read-urlmap
b/git-daemon/read-urlmap
index 0fd760f8c2c95b91756507c5ad528351ea2bf1b7..696ee654a33085f5beec817f9f57eb0ebd89cf34 100644
(file)
--- a/
git-daemon/read-urlmap
+++ b/
git-daemon/read-urlmap
@@
-34,7
+34,8
@@
fail "no config ??" unless @ARGV;
fail "no specpath ??" unless length $specpath;
our $uri = "git://$spechost/$specpath";
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);
our $check_export= 0;
our ($serve_user, $serve_dir, $serve_repo);