echo"Tag $(get_last_tag) already exists for the last commit, skipping"
# so just skipping
continue
fi
# TODO: check result message for merge?
# Use heads/ against warning: refname 'branch-name' is ambiguous
docmd git merge --no-ff heads/$CURBRANCH
# override spec conflicts
mv-f$BPSPEC$SPEC|| fatal
# FIXME: Ctrl-\ and q will cancelled less with return error code
if[-z"$QUIET"]&&tty-s&&!(echo"etersoft-build-utils INFO: Please check diff for backported spec:";echo"# etersoft-build-utils NOTE: You can press Ctrl-\ before quit for cancel process.";echo; git diff $USEBRANCH) | less;then
#git checkout $SPEC $MDISTR
#git checkout $CURBRANCH
fatal "Cancelled by user. You are still in $USEBRANCH branch with modified spec."
fi
docmd git add $SPEC
if! git_commit_ignore_nothing -a-m"backported to $USEBRANCH as $(get_version $SPEC)-$(get_release $SPEC) (with rpmbph script)";then