Skip to content

Commit 135b4e8

Browse files
author
Chris Maffin
committed
Version caching was looking at working directory not git directory
1 parent bec5eb5 commit 135b4e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GitVersionTask/VersionAndBranchFinder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static VersionVariables GetVersion(string directory, Authentication authe
2727
var gitDir = GitDirFinder.TreeWalkForDotGitDir(directory);
2828
using (var repo = RepositoryLoader.GetRepo(gitDir))
2929
{
30-
var ticks = DirectoryDateFinder.GetLastDirectoryWrite(directory);
30+
var ticks = DirectoryDateFinder.GetLastDirectoryWrite(gitDir);
3131
var key = string.Format("{0}:{1}:{2}", repo.Head.CanonicalName, repo.Head.Tip.Sha, ticks);
3232

3333
CachedVersion result;

0 commit comments

Comments
 (0)