Skip to content

Commit 7dea4b7

Browse files
committed
fix: gitflow.initialized must be true when using git-flow-next
Signed-off-by: leo <longshuang@msn.cn>
1 parent 8de93c8 commit 7dea4b7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎src/Models/GitFlow.cs‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ public void Parse(Dictionary<string, string> config)
3636
HotfixPrefix = string.Empty;
3737

3838
// Try to parse `git-flow-next` style configuration first if the `git-flow-next` is installed.
39-
if (Native.OS.GitFlowVersion == GitFlowVersion.Next)
39+
if (Native.OS.GitFlowVersion == GitFlowVersion.Next &&
40+
config.TryGetValue("gitflow.initialized", out var initialized) &&
41+
initialized.Equals("true", StringComparison.OrdinalIgnoreCase))
4042
{
4143
foreach (var kv in config)
4244
{

0 commit comments

Comments
 (0)