chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
73bbd10
)
dgit: vcs-git handling: Strip [...] a la Haskell Team
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 10 Aug 2019 18:22:24 +0000
(19:22 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 10 Aug 2019 23:09:30 +0000
(
00:09
+0100)
The final syntax of this is not yet agreed but this regexp ought to do
the right thing in all reasonable cases. (Ie, no [ ] inside the [ ].)
See also #932696 against policy, which is discussing the spec.
Closes: #932699
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
dgit
patch
|
blob
|
history
diff --git
a/dgit
b/dgit
index 541e8f60e2228fc9e75e816dade4b9673afdf107..941a14b93630d198172570a2a943d5ea29874d11 100755
(executable)
--- a/
dgit
+++ b/
dgit
@@
-3853,6
+3853,7
@@
sub vcs_git_url_of_ctrl ($) {
my $vcsgiturl = $ctrl->{'Vcs-Git'};
if (length $vcsgiturl) {
$vcsgiturl =~ s/\s+-b\s+\S+//g;
+ $vcsgiturl =~ s/\s+\[[^][]*\]//g;
}
return $vcsgiturl;
}