Git: Enable --no-verify for commit

Change-Id: I88cfb7839b41467e3f6b25bea329eb15765e440e
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
Orgad Shaneh
2012-03-13 21:38:51 +02:00
committed by Tobias Hunger
parent 63f0c0a62f
commit 6a3f9460d7
5 changed files with 49 additions and 35 deletions

View File

@@ -1874,6 +1874,8 @@ bool GitClient::addAndCommit(const QString &repositoryDirectory,
const QString &authorString = data.authorString();
if (!authorString.isEmpty())
args << QLatin1String("--author") << authorString;
if (data.bypassHooks)
args << QLatin1String("--no-verify");
QByteArray outputText;
QByteArray errorText;