Skip to content

Commit 4d8ecca

Browse files
filipnavaraAArnott
authored andcommitted
Hopefully fix worktree support
1 parent 35a11f5 commit 4d8ecca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NerdBank.GitVersioning/ManagedGit/GitRepository.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ public GitCommit GetCommit(GitObjectId sha, bool readAuthor = false)
295295
if (objectish.StartsWith("refs/", StringComparison.Ordinal))
296296
{
297297
// Match on loose ref files by their canonical name.
298-
possibleLooseFileMatches.Add(Path.Combine(this.GitDirectory, objectish));
298+
possibleLooseFileMatches.Add(Path.Combine(this.CommonDirectory, objectish));
299299
skipObjectIdLookup = true;
300300
}
301301
else

0 commit comments

Comments
 (0)