New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(dev-infra): support running scripts from within a detached head #37737
Closed
devversion
wants to merge
1
commit into
angular:master
from
devversion:fix/dev-infra-support-detached-head
Closed
fix(dev-infra): support running scripts from within a detached head #37737
devversion
wants to merge
1
commit into
angular:master
from
devversion:fix/dev-infra-support-detached-head
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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).
devversion
added
action: review
The PR is still awaiting reviews from at least one requested reviewer
target: patch
This PR is targeted for the next patch release
area: dev-infra
Issues related to Angular's own dev infra (build, test, CI, releasing)
labels
Jun 25, 2020
josephperrott
approved these changes
Jun 26, 2020
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
josephperrott
removed
the
action: review
The PR is still awaiting reviews from at least one requested reviewer
label
Jun 26, 2020
AndrewKushnir
pushed a commit
that referenced
this pull request
Jun 26, 2020
…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
drewswanner
pushed a commit
to drewswanner/angular
that referenced
this pull request
Jun 29, 2020
* upstream/master: (861 commits) ci: decrease payload size limit for integration tests (angular#37784) fix(core): error when invoking callbacks registered via ViewRef.onDestroy (angular#37543) fix(core): don't consider inherited NG_ELEMENT_ID during DI (angular#37574) ci: decrease expected AIO and integration payload sizes (angular#36578) (angular#36578) fix(core): determine required DOMParser feature availability (angular#36578) (angular#36578) refactor(core): split inert strategies to separate classes (angular#36578) (angular#36578) fix(core): do not trigger CSP alert/report in Firefox and Chrome (angular#36578) (angular#36578) fix(language-service): incorrect autocomplete results on unknown symbol (angular#37518) docs: release notes for the v10.0.1 release ci: exclude "docs" commit type from minBodyLength commit message validation (angular#37764) feat(dev-infra): add support for minBodyLengthTypeExcludes to commit-message validation (angular#37764) feat(platform-browser): Allow `sms`-URLs (angular#31463) refactor(core): throw more descriptive error message in case of invalid host element (angular#35916) build: move shims_for_IE to third_party directory (angular#37624) refactor(compiler-cli): Remove any cast for CompilerHost (angular#37079) fix(language-service): reinstate getExternalFiles() (angular#37750) docs: correct outdated dev instructions for public api golds (angular#37026) docs: add note about the month being zero-based in the Date constructor (angular#37770) fix(dev-infra): merge script should not always require full repo permissions (angular#37718) fix(dev-infra): support running scripts from within a detached head (angular#37737) ...
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
profanis
pushed a commit
to profanis/angular
that referenced
this pull request
Sep 5, 2020
…ngular#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 angular#37737
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
action: merge
The PR is ready for merge by the caretaker
area: dev-infra
Issues related to Angular's own dev infra (build, test, CI, releasing)
cla: yes
target: patch
This PR is targeted for the next patch release
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Scripts provided in the
ng-dev
command might use localgit
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).