Skip to content

Commit c08bdaa

Browse files
author
Jaipreet Singh
committed
Update clone to not use shell=True
Related to * Similar fix made for push/pull #362 * Regression from #344
1 parent f669aee commit c08bdaa

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

jupyterlab_git/git.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ def clone(self, current_path, repo_url):
7878
env['GIT_TERMINAL_PROMPT'] = '0'
7979
p = subprocess.Popen(
8080
['git', 'clone', unquote(repo_url)],
81-
shell=True,
8281
stdout=PIPE,
8382
stderr=PIPE,
8483
cwd=os.path.join(self.root_dir, current_path),

tests/unit/test_clone.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ def test_git_clone_success(mock_subproc_popen):
2727
stdout=PIPE,
2828
stderr=PIPE,
2929
cwd='/bin/test_curr_path',
30-
shell=True,
3130
env={'TEST': 'test', 'GIT_TERMINAL_PROMPT': '0'},
3231
),
3332
call().communicate()
@@ -62,7 +61,6 @@ def test_git_clone_failure_from_git(mock_subproc_popen):
6261
stdout=PIPE,
6362
stderr=PIPE,
6463
cwd='/bin/test_curr_path',
65-
shell=True,
6664
env={'TEST': 'test', 'GIT_TERMINAL_PROMPT': '0'},
6765
),
6866
call().communicate()

0 commit comments

Comments
 (0)