#!/bin/sh
case "$PWD" in
  *-existing-worktree)
    if [ "$(/usr/bin/git branch --show-current)" = "635002-send-tool-output" ]; then
      /usr/bin/git switch separate-work || exit 1
    fi
  ;;
esac
exec /usr/lib/git-core/git-remote-https "$@"
