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

ThisAssembly.Git.Commits returns an incorrect value for .NET 6 app #318

Closed
CyberbobGit opened this issue Sep 19, 2023 · 2 comments
Closed
Labels
need info More info needed to diagnose the issue

Comments

@CyberbobGit
Copy link

Hi,

first of all thanks for this project!

Since the moment we migrated our project from .NET Framework 4 to .NET 6 (git repository is still the same), we have a problem with an incorrect value in ThisAssembly.Git.Commits. If I take the hash from ThisAssembly.Git.Commit property and try to call in command line:

git rev-list [TheHash] --count

I get 17324 while ThisAssembly.Git.Commits contains 1803. Where could be the problem?

Thanks

Version Info

3.3.3

@kzu
Copy link
Member

kzu commented Sep 27, 2023

You can run the build with msbuildlog.com and inspect the Exec commands issued by GitInfo to exactly see what git commands are run.

@kzu kzu added need info More info needed to diagnose the issue and removed bug labels Feb 15, 2024
@kzu
Copy link
Member

kzu commented Feb 15, 2024

Closing for now since there's no additional info to act on. My suggestion is to inspect the executed git commands via MSBuild, since those are the ones counted for the commits property.

@kzu kzu closed this as not planned Won't fix, can't repro, duplicate, stale Feb 15, 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.
Labels
need info More info needed to diagnose the issue
Projects
None yet
Development

No branches or pull requests

2 participants