fix: refusing to merge unrelated histories

This commit is contained in:
radishzzz 2025-05-29 09:59:17 +01:00
parent cb55fc4090
commit 42225906ab

View file

@ -14,7 +14,7 @@ try {
execSync('git fetch upstream', { stdio: 'inherit' })
const beforeHash = execSync('git rev-parse HEAD', { encoding: 'utf8' }).trim()
execSync('git merge upstream/master', { stdio: 'inherit' })
execSync('git merge upstream/master --allow-unrelated-histories', { stdio: 'inherit' })
const afterHash = execSync('git rev-parse HEAD', { encoding: 'utf8' }).trim()
if (beforeHash === afterHash) {