check_commit, cmd_switch: git apply needs to run from repo-root