Skip to content

Commit

Permalink
Hopefully fix worktree support
Browse files Browse the repository at this point in the history
  • Loading branch information
filipnavara committed Jun 11, 2021
1 parent 66da1da commit 35141a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NerdBank.GitVersioning/ManagedGit/GitRepository.cs
Expand Up @@ -325,7 +325,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 35141a1

Please sign in to comment.