Commit fb61347b authored by Vitaly Lipatov's avatar Vitaly Lipatov

gpull: check for severy remote branch case

parent 35b17ac1
......@@ -71,6 +71,9 @@ pull_from_unique_branch()
{
[ -n "$REPO" ] || return
REMOTEBRANCH=$(git branch -a | grep "^ remotes/$REPO/" | sed -e "s|.*remotes/$REPO/||")
if [ "$(estrlist count $REMOTEBRANCH)" -gt 1 ] ; then
fatal "Can't detect remote branch in $REMOTEBRANCH. Run with one from these."
fi
docmd git pull $REBASE $REPO $REMOTEBRANCH
}
......
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