Skip to content

Commit

Permalink
Merge pull request GitTools#100 from rvdginste/issue-99
Browse files Browse the repository at this point in the history
Bugfix for GitTools#99, always do a treewalk to find the git folder and use that
  • Loading branch information
GeertvanHorrik authored Oct 2, 2016
2 parents 93237bb + e7a063e commit e88b704
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/GitLink/Providers/ProviderBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit e88b704

Please sign in to comment.