// create a bare test repository and ensure the HEAD file exists auto repo = initRepo(_userRepo, OpenBare.yes); scope(exit) rmdirRecurse(_userRepo); assert(buildPath(_userRepo, "HEAD").exists);
// create a non-bare test repository and ensure the .git/HEAD file exists auto repo = initRepo(_userRepo, OpenBare.no); scope(exit) rmdirRecurse(_userRepo); assert(buildPath(_userRepo, ".git/HEAD").exists);