fix: determine if the branch exists first #1173
Merged
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.
Problem
We get a lot of such errors when users access their site dashboard when retrieving the last saved and last published information:
This happens because we try to get the Git log for the
master
branch first, before attempting onorigin/master
. The first one will fail as themaster
branch does not exist on EFS, butorigin/master
does.Solution
Breaking Changes
Bug Fixes:
Tests
Unable to ascertain that "master" branch...
log line as an info log.Deploy Notes
None