aboutsummaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorSebastien Devaux <sebastien.devaux@laposte.net>2019-08-24 22:42:25 +0200
committerSebastien Devaux <sebastien.devaux@laposte.net>2019-08-24 22:42:25 +0200
commit7e123fbfcae76e3ad188cfa5e98c27adcde8d6d7 (patch)
tree8dab22f51e01ebf286ba9a9c0cc61244a313586f /commands
parent91f563da5f508cfcc5dfe6418e2f6333e247ec6e (diff)
downloadgit-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 'commands')
-rw-r--r--commands/select/select.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/select/select.go b/commands/select/select.go
index fdc87154..cf861fcc 100644
--- a/commands/select/select.go
+++ b/commands/select/select.go
@@ -137,5 +137,5 @@ func selected(repo *cache.RepoCache) (*cache.BugCache, error) {
}
func selectFilePath(repo repository.RepoCommon) string {
- return path.Join(repo.GetPath(), ".git", "git-bug", selectFile)
+ return path.Join(repo.GetPath(), "git-bug", selectFile)
}