summaryrefslogtreecommitdiffstats
path: root/git-hooks/gerrit-bot
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@qt.io>2018-01-12 12:54:08 +0100
committerOswald Buddenhagen <oswald.buddenhagen@qt.io>2018-01-12 12:06:49 +0000
commit0c77ce3733430745d9e08792d5a2ab5f24c7fe4e (patch)
tree00462783dd2ab8262671923819e096c72e5ea2dc /git-hooks/gerrit-bot
parent26110a4db4d4a402739d6ef823a57400337abe76 (diff)
gerrit-bot: support slashes in branch names in move requests
Change-Id: Ifcace60957cf2383effaaa23adcd7e1509d04066 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'git-hooks/gerrit-bot')
-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 296a08e..2805cf8 100755
--- a/git-hooks/gerrit-bot
+++ b/git-hooks/gerrit-bot
@@ -336,7 +336,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);
}
}