Skip to content

Commit 35141a1

Browse files
committed
Hopefully fix worktree support
1 parent 66da1da commit 35141a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NerdBank.GitVersioning/ManagedGit/GitRepository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ public GitCommit GetCommit(GitObjectId sha, bool readAuthor = false)
325325
if (objectish.StartsWith("refs/", StringComparison.Ordinal))
326326
{
327327
// Match on loose ref files by their canonical name.
328-
possibleLooseFileMatches.Add(Path.Combine(this.GitDirectory, objectish));
328+
possibleLooseFileMatches.Add(Path.Combine(this.CommonDirectory, objectish));
329329
skipObjectIdLookup = true;
330330
}
331331
else

0 commit comments

Comments
 (0)