summaryrefslogtreecommitdiffstats
path: root/pkg/utils
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2023-07-17 14:38:08 +1000
committerJesse Duffield <jessedduffield@gmail.com>2023-07-30 18:35:22 +1000
commitb73efb2c22bfe587b58210da8f130469430066ed (patch)
tree17e1800de789e7f40d0661ad5ffce6068e915ba0 /pkg/utils
parenta06a5cadee1763d3360af698e7c2e1bbe915b3e0 (diff)
Better logic for knowing which repo we're in
Diffstat (limited to 'pkg/utils')
-rw-r--r--pkg/utils/utils.go11
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