public void RepoAnonPushRespectsGlobalSettings()
{
ForAllGits(git =>
{
var repo_id = ITH.CreateRepositoryOnWebInterface(RepositoryName);
AllowAnonRepoClone(repo_id, true);
CloneRepoAnon(git, true);
CreateIdentity(git);
SetRepoPushTo(repo_id, RepositoryPushMode.Global);
CreateRandomFile(Path.Combine(RepositoryDirectory, "file.txt"), 0);
RunGitOnRepo(git, "add .").ExpectSuccess();
RunGitOnRepo(git, "commit -m\"Aw yeah!\"").ExpectSuccess();
SetAnonPush(false);
PushFiles(git, false);
SetAnonPush(true);
PushFiles(git, true);
});
}