This repository was archived by the owner on Sep 26, 2019. It is now read-only.
Use git show-ref to retrieve hash reference#1840
Open
mbaxter wants to merge 6 commits intoPegaSysEng:masterfrom
Open
Use git show-ref to retrieve hash reference#1840mbaxter wants to merge 6 commits intoPegaSysEng:masterfrom
mbaxter wants to merge 6 commits intoPegaSysEng:masterfrom
Conversation
Contributor
|
This create a hard requirement on git being present to do a build. Many of our build containers do not have git present. Can the old method be kept as a primary and the show-ref version be attempted when it fails? |
Contributor
|
For the record, I believe we've added git to all our build containers now. The latest version of the release plugin required it. But we're planning to remove the release plugin entirely so maybe would be useful to make it work with or without git if it's not too hard. |
Contributor
Author
|
Cool, that makes sense. Will update 👍 |
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
PR description
Use
git show-refto retrieve the hash associate with a git reference. This handles the case where the current branch reference is stored in.git/packed-refsbut not.git/refs/heads.