public void AnonRepoClone()
{
/* This test can fail if you have any credential.helper setup on your system.
* This is because it is a multi-value configuration which cannot (yet) be
* unset on the command line or any other way. I have reported it and
* maybe a new git version will be able to do it.
* See http://article.gmane.org/gmane.comp.version-control.git/287538
* and patch status http://article.gmane.org/gmane.comp.version-control.git/287565
*/
ForAllGits(git =>
{
Guid repo_id = ITH.CreateRepositoryOnWebInterface(RepositoryName);
AllowAnonRepoClone(repo_id, false);
CloneRepoAnon(git, false);
AllowAnonRepoClone(repo_id, true);
CloneRepoAnon(git, true);
});
}