diff options
author | Oswald Buddenhagen <oswald.buddenhagen@qt.io> | 2018-01-12 12:54:08 +0100 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@qt.io> | 2018-01-12 12:06:49 +0000 |
commit | 0c77ce3733430745d9e08792d5a2ab5f24c7fe4e (patch) | |
tree | 00462783dd2ab8262671923819e096c72e5ea2dc /git-hooks/gerrit-bot | |
parent | 26110a4db4d4a402739d6ef823a57400337abe76 (diff) | |
download | qtrepotools-0c77ce3733430745d9e08792d5a2ab5f24c7fe4e.tar.gz |
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-x | git-hooks/gerrit-bot | 2 |
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); } } |