Always setting the 'IgnoreBranches' parameter to a new repository

This commit is contained in:
Philippe Miossec
2014-11-16 16:25:39 +01:00
parent caecd2ca32
commit bf7dd817ec
3 changed files with 5 additions and 0 deletions
+2
View File
@@ -118,6 +118,8 @@ namespace Sep.Git.Tfs.Commands
if (tfsRepositoryPath == GitTfsConstants.TfsRoot)
fetch.IgnoreBranches = true;
globals.Repository.SetConfig(GitTfsConstants.IgnoreBranches, fetch.IgnoreBranches.ToString());
if (retVal == 0)
{
fetch.Run(withBranches);
+2
View File
@@ -101,6 +101,8 @@ namespace Sep.Git.Tfs.Commands
}
}
globals.Repository.SetConfig(GitTfsConstants.IgnoreBranches, false.ToString());
}
private string[] BuildInitCommand()
+1
View File
@@ -105,6 +105,7 @@ namespace Sep.Git.Tfs.Core
return defaultValue;
}
}
public void SetConfig(string key, string value)
{
_repository.Config.Set<string>(key, value, ConfigurationLevel.Local);