summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@qt.io>2018-03-19 12:26:41 +0100
committerOswald Buddenhagen <oswald.buddenhagen@qt.io>2018-03-19 14:30:46 +0000
commit5655cafd10c3247715cdaf99d857f25af2a4be15 (patch)
tree9faeaaa33062e7d081c5032344dd701fb724c0d7
parentbdc5b7218289ab0680f27a99a7daaecbc859815e (diff)
accept dashes in branch names in move requests
Change-Id: If351a93f6959406e032e85c8e0238af87333a727 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
-rwxr-xr-xgit-hooks/gerrit-bot2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-hooks/gerrit-bot b/git-hooks/gerrit-bot
index 5ae0b74..e5e8845 100755
--- a/git-hooks/gerrit-bot
+++ b/git-hooks/gerrit-bot
@@ -337,7 +337,7 @@ while (<UPDATES>) {
delete $skipfetch{$$rup{'project'}};
} elsif ($type eq 'comment-added') {
my $cmd = $$update{'comment'};
- if ($cmd =~ /^(?:gerrit-)?bot:\h*(?:please\h+)?move\h+(?:back\h+)?to\h+(?:branch\h+)?([\w.\/]*\w)\b/im) {
+ if ($cmd =~ /^(?:gerrit-)?bot:\h*(?:please\h+)?move\h+(?:back\h+)?to\h+(?:branch\h+)?([\w.\/-]*\w)\b/im) {
process_move($$update{'change'}, $$update{'author'}, $1);
}
}