Skip to content

Commit

Permalink
Hopefully fix worktree support
Browse files Browse the repository at this point in the history
  • Loading branch information
filipnavara authored and AArnott committed Jun 12, 2021
1 parent 35a11f5 commit 4d8ecca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NerdBank.GitVersioning/ManagedGit/GitRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ public GitCommit GetCommit(GitObjectId sha, bool readAuthor = false)
if (objectish.StartsWith("refs/", StringComparison.Ordinal))
{
// Match on loose ref files by their canonical name.
possibleLooseFileMatches.Add(Path.Combine(this.GitDirectory, objectish));
possibleLooseFileMatches.Add(Path.Combine(this.CommonDirectory, objectish));
skipObjectIdLookup = true;
}
else
Expand Down

0 comments on commit 4d8ecca

Please sign in to comment.