docmd git checkout $USEBRANCH|| fatal "Can't checkout branch $USEBRANCH. Use $BPSPEC manually or remove it."
# 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
...
...
@@ -176,9 +146,8 @@ if [ "$PKGVENDOR" = "alt" ] && is_gear $SPECDIR ; then