Skip to content

Commit

Permalink
Bugfix for GitTools#99, always do a treewalk to find the git folder a…
Browse files Browse the repository at this point in the history
…nd use that
  • Loading branch information
rvdginste committed Oct 2, 2016
1 parent 93237bb commit e7a063e
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 e7a063e

Please sign in to comment.