about summary refs log tree commit diff
path: root/src/git/__init__.py
diff options
context:
space:
mode:
authorFranck Cuny <fcuny@roblox.com>2024-10-04 08:00:34 -0700
committerFranck Cuny <fcuny@roblox.com>2024-10-20 11:54:05 -0700
commitf04063f2f9c20523a5ab1349e331eb53a51efc87 (patch)
tree1f6693b08cd1774a4063c04c997712d5402d7271 /src/git/__init__.py
parentadd credential manager (diff)
downloadworld-f04063f2f9c20523a5ab1349e331eb53a51efc87.tar.gz
add more tools
Diffstat (limited to 'src/git/__init__.py')
-rw-r--r--src/git/__init__.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/git/__init__.py b/src/git/__init__.py
deleted file mode 100644
index 319fea2..0000000
--- a/src/git/__init__.py
+++ /dev/null
@@ -1,14 +0,0 @@
-from subprocess import CalledProcessError, check_output
-
-
-def root() -> str:
-    try:
-        root = check_output(["git", "rev-parse", "--show-toplevel"]).decode("utf-8").strip()
-        return root
-    except CalledProcessError as err:
-        raise OSError("Current working directory is not a git repository") from err
-
-
-def repository_name() -> str:
-    repo_path = root()
-    return repo_path.split("/")[-1]