diff options
author | Sebastien Devaux <sebastien.devaux@laposte.net> | 2019-08-24 22:42:25 +0200 |
---|---|---|
committer | Sebastien Devaux <sebastien.devaux@laposte.net> | 2019-08-24 22:42:25 +0200 |
commit | 7e123fbfcae76e3ad188cfa5e98c27adcde8d6d7 (patch) | |
tree | 8dab22f51e01ebf286ba9a9c0cc61244a313586f /cache/repo_cache.go | |
parent | 91f563da5f508cfcc5dfe6418e2f6333e247ec6e (diff) | |
download | git-bug-7e123fbfcae76e3ad188cfa5e98c27adcde8d6d7.tar.gz |
issue 178: fetch the repo dir with rev-parse --git-dir
Since is returns the .git dir directly, it is not more needed to
concatenate .git.
Diffstat (limited to 'cache/repo_cache.go')
-rw-r--r-- | cache/repo_cache.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cache/repo_cache.go b/cache/repo_cache.go index 107a4876..bc095856 100644 --- a/cache/repo_cache.go +++ b/cache/repo_cache.go @@ -350,11 +350,11 @@ func (c *RepoCache) writeIdentityCache() error { } func bugCacheFilePath(repo repository.Repo) string { - return path.Join(repo.GetPath(), ".git", "git-bug", bugCacheFile) + return path.Join(repo.GetPath(), "git-bug", bugCacheFile) } func identityCacheFilePath(repo repository.Repo) string { - return path.Join(repo.GetPath(), ".git", "git-bug", identityCacheFile) + return path.Join(repo.GetPath(), "git-bug", identityCacheFile) } func (c *RepoCache) buildCache() error { @@ -706,7 +706,7 @@ func (c *RepoCache) Pull(remote string) error { } func repoLockFilePath(repo repository.Repo) string { - return path.Join(repo.GetPath(), ".git", "git-bug", lockfile) + return path.Join(repo.GetPath(), "git-bug", lockfile) } // repoIsAvailable check is the given repository is locked by a Cache. |