From e7a063e229e7ec8f081978f2dcab5f7d664af4e9 Mon Sep 17 00:00:00 2001 From: Ruben Vandeginste Date: Sun, 2 Oct 2016 13:14:51 +0200 Subject: [PATCH] Bugfix for #99, always do a treewalk to find the git folder and use that --- src/GitLink/Providers/ProviderBase.cs | 2 ++ 1 file changed, 2 insertions(+) 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))