It writes a next version.txt file. Otherwise it would be 0.0.1

Sent from my Windows Phone
________________________________
From: Robert Moore<mailto:notifications@github.com>
Sent: ý10/ý11/ý2013 14:29
To: JakeGinnivan/GitHubFlowVersion<mailto:GitHubFlowVersion@noreply.github.com>
Cc: Jake Ginnivan<mailto:jake@ginnivan.net>
Subject: Re: [GitHubFlowVersion] New projects will now default to v0.1.0 (#32)


In src/GitHubFlowVersion/LastTaggedReleaseFinder.cs:

> @@ -39,7 +42,13 @@ private static VersionTaggedCommit GetVersion(IRepository gitRepo, IGitHelper gi
>              if (lastTaggedCommit != null)
>                  return tags.Single(a => a.Commit.Sha == lastTaggedCommit.Sha);
>
> -            throw new Exception("Cant find last tagged version");
> +            // Create a next version txt as 0.1.0
> +            var filePath = Path.Combine(_workingDirectory, "NextVersion.txt");
> +            if (!File.Exists(filePath))
> +                File.WriteAllText(filePath, "0.1.0");
> +
> +            var commit = branch.Commits.Last();
> +            return new VersionTaggedCommit(commit, new SemanticVersion(0, 0 ,0));


Is this (0.0.0) so that it will increment by 1 minor to 0.1.0 automatically?

—
Reply to this email directly or view it on GitHub<https://github.com/JakeGinnivan/GitHubFlowVersion/pull/32/files#r7548743>.