Skip to content

Disable git hooks for the upgrade process #16855

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions react-native-git-upgrade/cliEntry.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ async function run(requestedVersion, cliArgs) {
await exec('git add .', verbose);

log.info('Commit current project sources');
await exec('git commit -m "Project snapshot"', verbose);
await exec('git commit -m "Project snapshot" --no-verify', verbose);

log.info('Create a tag before updating sources');
await exec('git tag project-snapshot', verbose);
Expand All @@ -291,7 +291,7 @@ async function run(requestedVersion, cliArgs) {
await exec('git add .', verbose);

log.info('Commit old version template');
await exec('git commit -m "Old version" --allow-empty', verbose);
await exec('git commit -m "Old version" --allow-empty --no-verify', verbose);

log.info('Install the new version');
let installCommand;
Expand All @@ -314,7 +314,7 @@ async function run(requestedVersion, cliArgs) {
await exec('git add .', verbose);

log.info('Commit new version template');
await exec('git commit -m "New version" --allow-empty', verbose);
await exec('git commit -m "New version" --allow-empty --no-verify', verbose);

log.info('Generate the patch between the 2 versions');
const diffOutput = await exec('git diff --binary --no-color HEAD~1 HEAD', verbose);
Expand Down Expand Up @@ -345,7 +345,7 @@ async function run(requestedVersion, cliArgs) {
log.error(err.stack);
if (projectBackupCreated) {
log.error('Restore initial sources');
await exec('git checkout project-snapshot', true);
await exec('git checkout project-snapshot --no-verify', true);
}
}
}
Expand Down