diff options
author | Oswald Buddenhagen <oswald.buddenhagen@qt.io> | 2018-03-19 12:26:41 +0100 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@qt.io> | 2018-03-19 14:30:46 +0000 |
commit | 5655cafd10c3247715cdaf99d857f25af2a4be15 (patch) | |
tree | 9faeaaa33062e7d081c5032344dd701fb724c0d7 /git-hooks | |
parent | bdc5b7218289ab0680f27a99a7daaecbc859815e (diff) | |
download | qtrepotools-5655cafd10c3247715cdaf99d857f25af2a4be15.tar.gz |
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>
Diffstat (limited to 'git-hooks')
-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 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); } } |