Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not find all git info when on branch with '.' in the name #328

Closed
henkmartijn opened this issue Jan 3, 2024 · 3 comments
Closed

Can not find all git info when on branch with '.' in the name #328

henkmartijn opened this issue Jan 3, 2024 · 3 comments

Comments

@henkmartijn
Copy link

henkmartijn commented Jan 3, 2024

Describe the Bug

Can not find all git info during build when on branch with '.' in the name
for instance ThisAssembly.Git.BaseTag will be empty

Steps to Reproduce

Use GitInfo in a project
have a tag on a reachable branch
Create and checkout a branch with a '.' in the name for instance: 'dotnet8.0'
build the project.

Warnings:
4>xxx.nuget\packages\gitinfo\3.3.3\build\GitInfo.targets(713,5): warning MSB3073: The command "..." exited with code 128.
4>Cxxx.nuget\packages\gitinfo\3.3.3\build\GitInfo.targets(726,5): warning GI005: Could not retrieve first commit where branch dotnet8.0 forked from main. Defaulting to zero commits.

When running the program ThisAssembly.Git.BaseTag will be empty

Expected Behavior

  • no warnings
  • the correct tag in BaseTag

Version Info

Version 3.3.3, but also with older versions

@kzu
Copy link
Member

kzu commented Feb 4, 2024

Happy to take a PR on this one 🙏

@kzu kzu added enhancement and removed bug labels Feb 15, 2024
@AngryNui
Copy link

same with branches using /

example branch: features/#6924-refactor
ThisAssembly.Git.Branch will return features

@kzu
Copy link
Member

kzu commented May 8, 2024

There doesn't seem to be much interest in this, and no PR has been submitted, so closing for now.

@kzu kzu closed this as not planned Won't fix, can't repro, duplicate, stale May 8, 2024
@devlooped devlooped locked and limited conversation to collaborators Sep 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants