Commit abe0dd20 authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmgs: more strict git merge

parent 721befb7
......@@ -392,13 +392,13 @@ do
#TODO check upstream
#TODO error if incompatible
docmd git remote add upstream $GETSOURCEGIT
docmd git fetch upstream || fatal
docmd git fetch --tags upstream || fatal
#TODO check tag: v%version or %version
[ -n "$GSSETVERSION" ] || fatal "Sorry, I don't know new version"
if [ "$GSSETVERSION" = "HEAD" ] ; then
docmd git merge upstream/master
else
docmd git merge v$GSSETVERSION || docmd git merge $GSSETVERSION
docmd git merge v$GSSETVERSION || docmd git merge $GSSETVERSION || fatal
fi
# 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