diff options
author | Steve Moyer <smoyer1@selesy.com> | 2022-06-22 11:08:20 -0400 |
---|---|---|
committer | Steve Moyer <smoyer1@selesy.com> | 2022-06-22 11:08:20 -0400 |
commit | fd248de1eb5591ea977fdfcedf75d26f53636a5e (patch) | |
tree | 7e9a89ce480f537c3bbe0fb942d1bc9a1c3f758f /cache | |
parent | 323dd0e293fb965743269fe52c8335b3d7a7bb94 (diff) | |
parent | b694052c46a69b47e58526068109db2fbcca92af (diff) | |
download | git-bug-fd248de1eb5591ea977fdfcedf75d26f53636a5e.tar.gz |
Merge branch 'master' into refactor/guarantee-test-cleanup
Diffstat (limited to 'cache')
-rw-r--r-- | cache/multi_repo_cache.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cache/multi_repo_cache.go b/cache/multi_repo_cache.go index 726558d9..659cd5e6 100644 --- a/cache/multi_repo_cache.go +++ b/cache/multi_repo_cache.go @@ -7,6 +7,7 @@ import ( ) const lockfile = "lock" +const defaultRepoName = "__default" // MultiRepoCache is the root cache, holding multiple RepoCache. type MultiRepoCache struct { @@ -37,7 +38,7 @@ func (c *MultiRepoCache) RegisterDefaultRepository(repo repository.ClockedRepo) return nil, err } - c.repos[""] = r + c.repos[defaultRepoName] = r return r, nil } |