Skip to content

Commit 14a3fc3

Browse files
Fixed issue
1 parent 33893ba commit 14a3fc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GitVersionCore/GitVersionContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public GitVersionContext(IRepository repository, Branch currentBranch, Config co
4040
{
4141
Logger.WriteWarning("No specific commit specified or found, falling back to latest commit on specified branch");
4242

43-
CurrentCommit = repository.Head.Tip;
43+
CurrentCommit = currentBranch.Tip;
4444
}
4545

4646
if (currentBranch.IsDetachedHead())

0 commit comments

Comments
 (0)