From dfb0aef0acfc31e548b35c3641ea8ef592e017ea Mon Sep 17 00:00:00 2001 From: Laibalion Date: Wed, 9 May 2018 18:20:00 +0200 Subject: [PATCH] Ignore not init branches (#1189) ignore-not-init-branches's value is not longer case sensitive. True, true, False, False etc are all valid. --- doc/release-notes/NEXT.md | 1 + src/GitTfs/Core/GitTfsRemote.cs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/release-notes/NEXT.md b/doc/release-notes/NEXT.md index fa07c3a1..879ae43c 100644 --- a/doc/release-notes/NEXT.md +++ b/doc/release-notes/NEXT.md @@ -1 +1,2 @@ * Pick up labels that don't have the branch folder specifically listed (#1125) +* ignore-not-init-branches value is not longer case sensitive diff --git a/src/GitTfs/Core/GitTfsRemote.cs b/src/GitTfs/Core/GitTfsRemote.cs index 15bb1cb4..d0c7ded3 100644 --- a/src/GitTfs/Core/GitTfsRemote.cs +++ b/src/GitTfs/Core/GitTfsRemote.cs @@ -631,7 +631,8 @@ namespace GitTfs.Core } } - if (mergeChangeset && tfsBranch != null && Repository.GetConfig(GitTfsConstants.IgnoreNotInitBranches) == true.ToString()) + if (mergeChangeset && tfsBranch != null && + string.Equals(Repository.GetConfig(GitTfsConstants.IgnoreNotInitBranches), true.ToString(), StringComparison.InvariantCultureIgnoreCase)) { Trace.TraceInformation("warning: skip not initialized branch for path " + tfsBranch.Path); tfsRemote = null;