Skip to content

ensure _source_branch is never a tag#27

Open
rsrchboy wants to merge 1 commit intomadsen:masterfrom
rsrchboy:topic/tags_arent_branches
Open

ensure _source_branch is never a tag#27
rsrchboy wants to merge 1 commit intomadsen:masterfrom
rsrchboy:topic/tags_arent_branches

Conversation

@rsrchboy
Copy link

@rsrchboy rsrchboy commented Nov 9, 2016

If you're releasing to the CPAN where your HEAD is also tagged,
_source_branch's default would populate the attribute with the tag name. This
is sub-optimal, and tends to result in things like:

fatal: update_ref failed for ref 'refs/heads/build/tags/0.006^0': refusing to update ref with bad name 'refs/heads/build/tags/0.006^0'

The fix is to constrain the set of refs name-rev uses to name a commit
to the set of branches.

...why would we ever do this? Well, imagine a situation where a TRIAL/dev
release has been cut and deemed satisfactory; it's possible a release would be
cut directly, without any changes from the previous release.

If you're releasing to the CPAN where your HEAD is also tagged,
_source_branch's default would populate the attribute with the tag name.
This is sub-optimal, and tends to result in things like:

    fatal: update_ref failed for ref 'refs/heads/build/tags/0.006^0': refusing to update ref with bad name 'refs/heads/build/tags/0.006^0'

The fix is to constrain the set of refs name-rev uses to name a commit
to the set of branches.
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.

1 participant