From 380684eed988447de1150da838625fcfa40e00ee Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Thu, 30 May 2024 12:03:15 +0200 Subject: [PATCH] cd-clone-branch --- cd/__init__.py | 2 +- cmd/cd-clone-branch.sh | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) delete mode 100755 cmd/cd-clone-branch.sh diff --git a/cd/__init__.py b/cd/__init__.py index cb95ebf..c161dd6 100644 --- a/cd/__init__.py +++ b/cd/__init__.py @@ -35,7 +35,7 @@ def cd_clone_branch(): '--branch', project.branch, '--', project.url, - os.path.realpath(os.curdir), + project.root, ) diff --git a/cmd/cd-clone-branch.sh b/cmd/cd-clone-branch.sh deleted file mode 100755 index e84ff7b..0000000 --- a/cmd/cd-clone-branch.sh +++ /dev/null @@ -1,8 +0,0 @@ -git clone \ ---branch "${GITHUB_REF_NAME}" \ --- \ -"${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}" \ -'.' - -rm --force --recursive \ -'.git' '.gitignore'