Skip to content

Commit 5774aea

Browse files
authored
Merge pull request jupyterlab#368 from jaipreet-s/clonefix
Update clone to not use shell=True
2 parents f669aee + c08bdaa commit 5774aea

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)