mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-15 11:12:54 +02:00
fix: refusing to merge unrelated histories
This commit is contained in:
parent
cb55fc4090
commit
42225906ab
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ try {
|
||||||
execSync('git fetch upstream', { stdio: 'inherit' })
|
execSync('git fetch upstream', { stdio: 'inherit' })
|
||||||
|
|
||||||
const beforeHash = execSync('git rev-parse HEAD', { encoding: 'utf8' }).trim()
|
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()
|
const afterHash = execSync('git rev-parse HEAD', { encoding: 'utf8' }).trim()
|
||||||
|
|
||||||
if (beforeHash === afterHash) {
|
if (beforeHash === afterHash) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue