diff --git a/src/GitLink/Providers/ProviderBase.cs b/src/GitLink/Providers/ProviderBase.cs index d1f7a89..32176ab 100644 --- a/src/GitLink/Providers/ProviderBase.cs +++ b/src/GitLink/Providers/ProviderBase.cs @@ -75,6 +75,8 @@ public string GetShaHashOfCurrentBranch(Context context, TemporaryFilesContext t repositoryDirectory = _repositoryPreparer.Prepare(context, temporaryFilesContext); } + repositoryDirectory = GitDirFinder.TreeWalkForGitDir(repositoryDirectory); + using (var repository = new Repository(repositoryDirectory)) { if (string.IsNullOrEmpty(context.ShaHash))