|
50 | 50 | mktempdir(@__DIR__) do temp_cache_dir
|
51 | 51 | # test when registry is not in the cache and not downloaded
|
52 | 52 | cache = RegistryTools.RegistryCache(temp_cache_dir)
|
53 |
| - with(get_registry(DEFAULT_REGISTRY_URL, cache=cache, gitconfig=TEST_GITCONFIG)) do repo |
| 53 | + LibGit2.with(get_registry(DEFAULT_REGISTRY_URL, cache=cache, gitconfig=TEST_GITCONFIG)) do repo |
54 | 54 | @test LibGit2.path(repo) == replace(RegistryTools.path(cache, DEFAULT_REGISTRY_URL), '\\'=>'/')
|
55 | 55 | @test LibGit2.branch(repo) == "master"
|
56 | 56 | @test !LibGit2.isdirty(repo)
|
|
61 | 61 | registry_path = RegistryTools.path(cache, DEFAULT_REGISTRY_URL)
|
62 | 62 | rm(registry_path, recursive=true, force=true)
|
63 | 63 | @test !ispath(registry_path)
|
64 |
| - with(get_registry(DEFAULT_REGISTRY_URL, cache=cache, gitconfig=TEST_GITCONFIG)) do repo |
| 64 | + LibGit2.with(get_registry(DEFAULT_REGISTRY_URL, cache=cache, gitconfig=TEST_GITCONFIG)) do repo |
65 | 65 | @test LibGit2.path(repo) == replace(RegistryTools.path(cache, DEFAULT_REGISTRY_URL), '\\'=>'/')
|
66 | 66 | @test LibGit2.branch(repo) == "master"
|
67 | 67 | @test !LibGit2.isdirty(repo)
|
|
80 | 80 | @test LibGit2.GitObject(repo, "HEAD") != LibGit2.GitObject(repo, "master")
|
81 | 81 | @test ispath(registry_path)
|
82 | 82 | end
|
83 |
| - with(get_registry(DEFAULT_REGISTRY_URL, cache=cache, gitconfig=TEST_GITCONFIG)) do repo |
| 83 | + LibGit2.with(get_registry(DEFAULT_REGISTRY_URL, cache=cache, gitconfig=TEST_GITCONFIG)) do repo |
84 | 84 | @test LibGit2.path(repo) == replace(RegistryTools.path(cache, DEFAULT_REGISTRY_URL), '\\'=>'/')
|
85 | 85 | @test LibGit2.branch(repo) == "master"
|
86 | 86 | @test !LibGit2.isdirty(repo)
|
|
0 commit comments