diff options
author | Franck Cuny <fcuny@roblox.com> | 2024-10-04 08:00:34 -0700 |
---|---|---|
committer | Franck Cuny <fcuny@roblox.com> | 2024-10-20 11:54:05 -0700 |
commit | f04063f2f9c20523a5ab1349e331eb53a51efc87 (patch) | |
tree | 1f6693b08cd1774a4063c04c997712d5402d7271 /src/git/__init__.py | |
parent | add credential manager (diff) | |
download | world-f04063f2f9c20523a5ab1349e331eb53a51efc87.tar.gz |
add more tools
Diffstat (limited to 'src/git/__init__.py')
-rw-r--r-- | src/git/__init__.py | 14 |
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] |