fix: use --no-verify when testing the Git permissions

This commit is contained in:
Pierre Vanduynslager 2020-01-22 10:35:54 -05:00
parent 88fe81915b
commit b54b20d412

View File

@ -204,7 +204,7 @@ async function isGitRepo(execaOpts) {
*/
async function verifyAuth(repositoryUrl, branch, execaOpts) {
try {
await execa('git', ['push', '--dry-run', repositoryUrl, `HEAD:${branch}`], execaOpts);
await execa('git', ['push', '--dry-run', '--no-verify', repositoryUrl, `HEAD:${branch}`], execaOpts);
} catch (error) {
debug(error);
throw error;