diff --git a/executor/cli/git.py b/executor/cli/git.py index 87b508e..59bc1c5 100644 --- a/executor/cli/git.py +++ b/executor/cli/git.py @@ -50,7 +50,7 @@ def handle_git(args): result = os.popen(cmd) print(result.read()) - cmd = f'git init {INPUT_PATH}' + cmd = f'git -C ' INPUT_PATH + ' init' exec_cmd(cmd) sample_string = "x-access-token:" + TOKEN @@ -77,7 +77,7 @@ def handle_git(args): value = 'git@codex.r10x.net:org-'+str(org_id)+'@github.com:' exec_cmd(cmd) - cmd = 'git remote add origin ' + GITHUB_SERVER_URL + '/' + REPOSITORY + cmd = 'git -C ' INPUT_PATH + ' remote add origin ' + GITHUB_SERVER_URL + '/' + REPOSITORY print(cmd) exec_cmd(cmd)