Fix -d flag by hardcoding default branch to origin/main #18
No reviewers
Labels
No Label
bug
documentation
duplicate
enhancement
help wanted
invalid
maintenance
peach-lib
peach-network
peach-oled
peach-stats
peach-web
question
refactor
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: PeachCloud/peach-package-builder#18
Loading…
Reference in New Issue
No description provided.
Delete Branch "d-flag"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
For some reason git-rev-parse was not returning the correct default branch for peach-network. Rather than go deeper into git land, I changed peach-package-builder to just assume that origin/main is the default branch, which I believe we are using for all repos. When you pass the -d flag to peach-package-builder, it ensures that the repo is on the default branch before building the package.