Skip to content

Commit 08aa5fc

Browse files
committed
add a option --allow-unrelated-histories for exceptional situation while merge
1 parent 43afc4e commit 08aa5fc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

git-xcp-archive

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ git checkout master
5050
git pull origin master
5151
check_conflict
5252
echo "# Now merging ..."
53-
git merge --squash -X theirs $lastest_submitted_tag_name
53+
git merge --allow-unrelated-histories --squash -X theirs $lastest_submitted_tag_name
5454
echo "# Now deploy to origin : $release_tag_name ..."
5555
git add . && git commit -m "[Release $release_tag_name]" && git push origin master
5656
git checkout $current_branch

src/xcp-archive

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ git checkout master
1919
git pull origin master
2020
check_conflict
2121
echo "# Now merging ..."
22-
git merge --squash -X theirs $lastest_submitted_tag_name
22+
git merge --allow-unrelated-histories --squash -X theirs $lastest_submitted_tag_name
2323
echo "# Now deploy to origin : $release_tag_name ..."
2424
git add . && git commit -m "[Release $release_tag_name]" && git push origin master
2525
git checkout $current_branch

0 commit comments

Comments
 (0)