Commit 71af4da6 authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmgs: fatal on failed git merge in update_master_branch_to

parent 465a350b
...@@ -412,9 +412,9 @@ update_master_branch_to() ...@@ -412,9 +412,9 @@ update_master_branch_to()
[ -n "$tag" ] || fatal "Can't find tag for $GSSETVERSION version" [ -n "$tag" ] || fatal "Can't find tag for $GSSETVERSION version"
if [ -d "$(get_root_git_dir)/.gear/tags" ] ; then if [ -d "$(get_root_git_dir)/.gear/tags" ] ; then
info "Using 'ours' merge strategy for .gear/tags-based package" info "Using 'ours' merge strategy for .gear/tags-based package"
docmd git merge -s ours $tag docmd git merge -s ours $tag || fatal "Failed to merge tag $tag (ours strategy)"
else else
docmd git merge $tag docmd git merge $tag || fatal "Failed to merge tag $tag. Try 'git merge --allow-unrelated-histories $tag' manually."
fi fi
# TODO: it is more clean detect that dir # TODO: it is more clean detect that dir
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment