When debugging using the repository Network object the quick watch of the instance tells me all threads need to be running, which causes the message in the title. Not sure why this is the case but when doing the push I get that message.
This real issue here is why The push below will not work versus removing and re-adding the remote.
Code is below - all parameter values are valid. Commits to the local repo are working. Only signature that works is using the remote after a removal and re-add of the remote. Branch is correct in this case below.:
private Repository GetGitRepo()
{
string path = Settings.GetSetting(Constants.GitRepositoryPath);
Repository repo = new Repository(path);
return repo;
}
using (var repo = GetGitRepo())
{
if(commit != null)
{
var options = new PushOptions();
options.CredentialsProvider = new CredentialsHandler(
(_url, _user, _cred) =>
new UsernamePasswordCredentials() { Username = Settings.GetSetting(Constants.GitUsername), Password = Settings.GetSetting(Constants.GitPassword) });
repo.Network.Push(_workingBranch, options);
}
}
Anyone else run across this issue or any idea what I may be missing?
Thanks in advance!