Skip to content

Commit 4b8cb31

Browse files
author
Jake Ginnivan
committed
There is a scenario where no config is resolved during branch inheirtance, this falls back to default config, which is inherit.
This causes infinite recursion. This fixes #1195
1 parent 26f85a0 commit 4b8cb31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitVersionCore/Configuration/ConfigurationProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class ConfigurationProvider
3030
public const string SupportBranchKey = "support";
3131
public const string DevelopBranchKey = "develop";
3232

33-
private const IncrementStrategy DefaultIncrementStrategy = IncrementStrategy.Inherit;
33+
private const IncrementStrategy DefaultIncrementStrategy = IncrementStrategy.Patch;
3434

3535
public static Config Provide(GitPreparer gitPreparer, IFileSystem fileSystem, bool applyDefaults = true, Config overrideConfig = null)
3636
{

0 commit comments

Comments
 (0)