diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2023-07-17 14:38:08 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2023-07-30 18:35:22 +1000 |
commit | b73efb2c22bfe587b58210da8f130469430066ed (patch) | |
tree | 17e1800de789e7f40d0661ad5ffce6068e915ba0 /pkg/utils | |
parent | a06a5cadee1763d3360af698e7c2e1bbe915b3e0 (diff) |
Better logic for knowing which repo we're in
Diffstat (limited to 'pkg/utils')
-rw-r--r-- | pkg/utils/utils.go | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/pkg/utils/utils.go b/pkg/utils/utils.go index 2f33862e8..bfebc13f0 100644 --- a/pkg/utils/utils.go +++ b/pkg/utils/utils.go @@ -3,9 +3,7 @@ package utils import ( "encoding/json" "fmt" - "log" "os" - "path/filepath" "regexp" "runtime" "strconv" @@ -15,15 +13,6 @@ import ( "github.com/jesseduffield/gocui" ) -// GetCurrentRepoName gets the repo's base name -func GetCurrentRepoName() string { - pwd, err := os.Getwd() - if err != nil { - log.Fatalln(err.Error()) - } - return filepath.Base(pwd) -} - // GetProjectRoot returns the path to the root of the project. Only to be used // in testing contexts, as with binaries it's unlikely this path will exist on // the machine |