Commit d223e6ca authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmgs: use 'ours' merge strategy for .gear/tags-based packages

parent 6b9b492b
......@@ -409,7 +409,12 @@ update_master_branch_to()
local tag="$(get_tag_by_version "$GSSETVERSION")"
[ -n "$tag" ] || fatal "Can't find tag for $GSSETVERSION version"
docmd git merge $tag
if [ -d "$(get_root_git_dir)/.gear/tags" ] ; then
info "Using 'ours' merge strategy for .gear/tags-based package"
docmd git merge -s ours $tag
else
docmd git merge $tag
fi
# TODO: it is more clean detect that dir
if [ -d "$(get_root_git_dir)/.gear/tags" ] ; then
......
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