make gerrit-bot pass the branch name to sanitize-commit


guessing the target branch with the help of git-merge-base is unreliable
when the user does a cross-branch push or the commit has simply an old
base. therefore, explicitly pass in the branch if we already know it,
which is the case on the server.

Fixes: QTQAINFRA-3322
Started-by: Daniel Smith <daniel.smith@qt.io>
Change-Id: I5fd1e827b9e169f4aa2eb3590bc4f252037d6ba0
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Daniel Smith <Daniel.Smith@qt.io>
commitc6aa7debde5fa010fc43023b41c94de64634a58f
parent44bdb4b8d3d43f15b70d819a6d391b62c554b6b5
authorOswald Buddenhagen <oswald.buddenhagen@gmx.de>
committerDaniel Smith <Daniel.Smith@qt.io>
commit timeFri, 15 May 2020 07:39:38 +0000