Skip to content

Heads-up: "warning: refname 'v2.2' is ambiguous." #206

Description

@thbar

Detected while doing a local review of:

We now have:

This shows up here:

❯ git show-ref | grep v2.2
c31529878e384560e61f862130fca64e43e09013 refs/heads/v2.2
c31529878e384560e61f862130fca64e43e09013 refs/remotes/origin/v2.2
98c16215e3cecc9f2d33f79b5b979d8c79c2ba96 refs/tags/v2.2

This means that one needs to be careful when doing diff locally.

On my machine, for instance, this command will by default compare to the tag, not the branch (which is problematic when reviewing PR #204 to be merged into v2.2 branch):

git diff -M --name-status v2.2...HEAD
warning: refname 'v2.2' is ambiguous.
A       CHANGELOG.md
A       README.md
D       docs/README.md
M       xsd/siri_utility/siri_types.xsd

(git rev-parse v2.2 shows how it resolves)

It can be solved by using explicit ref type (origin/v2.2 instead of just v2.2 which resolves to the tag in my case):

❯ git diff -M -w origin/v2.2...HEAD --name-status
A       CHANGELOG.md
A       README.md
D       docs/README.md

Ultimately: we need to ensure we use different formatting (e.g. v2.2.x) for releases versus tags, so that there is no conflict which will cause issues down the road.

Metadata

Metadata

Labels

generalFor general questions or issues about SIRI

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions