angular-cn/dev-infra/pr/discover-new-conflicts
Paul Gschwendtner dbc2364d16 fix(dev-infra): support running scripts from within a detached head (#37737)
Scripts provided in the `ng-dev` command might use local `git`
commands. For such scripts, we keep track of the branch that
has been checked out before the command has been invoked.

We do this so that we can later (upon command completion)
restore back to the original branch. We do not want to
leave the Git repository in a dirty state.

It looks like this logic currently only deals with branches
but does not work properly when a command is invoked from
a detached head. We can make it work by just checking out
the previous revision (if no branch is checked out).

PR Close #37737
2020-06-26 09:51:09 -07:00
..
BUILD.bazel feat(dev-infra): integrate merge script into ng-dev cli (#37138) 2020-05-18 11:50:08 -07:00
cli.ts style(dev-infra): correct tslint failures in dev-infra directory (#37233) 2020-06-04 12:44:46 -07:00
index.ts fix(dev-infra): support running scripts from within a detached head (#37737) 2020-06-26 09:51:09 -07:00