Skip to content

Commit 2638bc3

Browse files
committed
Merge pull request #92 from JakeGinnivan/MinorFixes
Fixing some small issues with GitHubFlow
2 parents e688508 + 50e5340 commit 2638bc3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

GitFlowVersion/GitHubFlow/GitHubFlowVersionFinder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ public class GitHubFlowVersionFinder
44
{
55
public VersionAndBranch FindVersion(GitVersionContext context)
66
{
7-
var repositoryDirectory = context.Repository.Info.Path;
7+
var repositoryDirectory = context.Repository.Info.WorkingDirectory;
88
var lastTaggedReleaseFinder = new LastTaggedReleaseFinder(context.Repository, repositoryDirectory);
99
return new BuildNumberCalculator(new NextSemverCalculator(new NextVersionTxtFileFinder(repositoryDirectory),
1010
lastTaggedReleaseFinder), lastTaggedReleaseFinder, context.Repository).GetBuildNumber(context);

GitFlowVersion/SemanticVersionTag.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ public class SemanticVersionTag
88

99
protected bool Equals(SemanticVersionTag other)
1010
{
11+
if (other == null)
12+
return false;
1113
return string.Equals(name, other.name);
1214
}
1315

0 commit comments

Comments
 (0)