about summary refs log tree commit diff
path: root/internal/git
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-05-06 19:28:58 -0700
committerFranck Cuny <franck@fcuny.net>2024-05-06 19:29:57 -0700
commitfdeb06f2c9e0bbb8e30de30c54e393cf19d3a3f8 (patch)
treef5972443b7adcdb6b030ff4391b001856a465d12 /internal/git
parentmove robloxenv to hashienv under `src' (diff)
downloadworld-fdeb06f2c9e0bbb8e30de30c54e393cf19d3a3f8.tar.gz
messing with stuff
Diffstat (limited to 'internal/git')
-rw-r--r--internal/git/main.go22
1 files changed, 0 insertions, 22 deletions
diff --git a/internal/git/main.go b/internal/git/main.go
deleted file mode 100644
index 67e7d4d..0000000
--- a/internal/git/main.go
+++ /dev/null
@@ -1,22 +0,0 @@
-package git
-
-import (
-	"fmt"
-	"os/exec"
-	"strings"
-)
-
-func Root() (string, error) {
-	cmd := exec.Command("git", "rev-parse", "--show-toplevel")
-	output, err := cmd.Output()
-	if err != nil {
-		return "", fmt.Errorf("failed to get git repository: %s", err)
-	}
-
-	// The output includes the full path to the repository. To get just the name,
-	// we can split the path by "/" and take the last part.
-	pathParts := strings.Split(strings.TrimSpace(string(output)), "/")
-	repoName := pathParts[len(pathParts)-1]
-
-	return repoName, nil
-}