Ignore not init branches (#1189)

ignore-not-init-branches's value is not longer case sensitive.
True, true, False, False etc are all valid.
This commit is contained in:
Laibalion
2018-05-09 18:20:00 +02:00
committed by Philippe Miossec
parent 4df6b97d73
commit dfb0aef0ac
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -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
+2 -1
View File
@@ -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;