Skip to content

Conversation

nickgerace
Copy link
Owner

@nickgerace nickgerace commented Dec 20, 2022

The behavior identified in #202 occurs because the constructed remote name (<remote>/<local-branch-name>) is assumed to exist. This will not always be the case, and will never (likely?) be the case when working on HEAD.

Closes #202
Closes #213

@nickgerace nickgerace force-pushed the dev branch 4 times, most recently from 881659f to 66543ba Compare December 20, 2022 19:16
@nickgerace nickgerace changed the title Remove bors Assume unpushed if unable to resolve ref from short name Dec 20, 2022
- When checking if unpushed and attempting to resolve the reference from
  a short name, ignore the error and assume we need to push
  - For now, the error is logged to stderr at the debug level, but we
    may need to perform more advanced error handling in the future
- Use tempfile instead of creating directories under "target"
  - The root temporary directory and its descendants will be immediately
    deleted as soon as the value for root is dropped from scope
  - This is far less error prone than the previous method
- Remove bors to increase developer and release feedback loop

Signed-off-by: Nick Gerace <nickagerace@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider disabling bors Error: no reference found for shorthand 'origin/HEAD'
1 participant