Skip to contentSkip to conversation

adhoc-revtuple-generator: Recognise http://example.net/example.git/ as git

PATCH New Ian Jackson 1 participant 1 message Apr 5, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 adhoc-revtuple-generator: Recognise http://example.net/example.git/ as git

In some circumstances the trailing slash appears, in a way that is outside our control. Eg some people with git submodules.

---
 adhoc-revtuple-generator | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
adhoc-revtuple-generator +1 -1
index 1e04773..be3f375 100755
@@ -507,7 +507,7 @@ sub parse_trees () {
             $tree->{Latest}= $2;
         }
         $tree->{Url}= $_;
-        if (m,/(\w[^/]+)\.git$,) {
+        if (m,/(\w[^/]+)\.git/?$,) {
             $tree->{Gen}= \&git_generator;
             $tree->{Show}= \&git_revshower;
             $tree->{Treename}= $1;
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel