Always setting the 'IgnoreBranches' parameter to a new repository
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -101,6 +101,8 @@ namespace Sep.Git.Tfs.Commands
|
||||
}
|
||||
}
|
||||
|
||||
globals.Repository.SetConfig(GitTfsConstants.IgnoreBranches, false.ToString());
|
||||
|
||||
}
|
||||
|
||||
private string[] BuildInitCommand()
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user