use FETCH_HEAD for tag-on-main ancestry check #126
No reviewers
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_whiteboard!126
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development"
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?
The checkout step does git clone --branch "$BRANCH" --depth 100, which
git treats as --single-branch. That populates only the tag's branch
ref, not refs/remotes/origin/main, so the previous origin/main lookup
failed with "fatal: Not a valid object name origin/main" and the
ancestry guard always rejected the tag.
git fetch origin main updates FETCH_HEAD even on a single-branch
clone, so use FETCH_HEAD as the ancestry target instead.