## First, take care of our base
depcheck="$(mktemp)"
-needs_update "$name" >"$depcheck"
+missing_deps=
+needs_update "$name" >"$depcheck" || :
+[ -z "$missing_deps" ] || die "some dependencies are missing: $missing_deps"
if [ -s "$depcheck" ]; then
# We need to switch to the base branch
# ...but only if we aren't there yet (from failed previous merge)
# The merge got stuck! Let the user fix it up.
info "You are in a subshell. If you abort the merge,"
info "use \`exit 1\` to abort the recursive update altogether."
- if ! sh -i; then
+ if ! sh -i </dev/tty; then
info "Ok, you aborated the merge. Now, you just need to"
info "switch back to some sane branch using \`git checkout\`."
exit 3
info "Please commit merge resolution and call exit."
info "You can abort this operation using \`git reset --hard\`."
fi
+ exit 3
fi