Skip to content

Commit e045995

Browse files
committed
minor update get_deps
1 parent 4065ca3 commit e045995

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/get_deps.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,16 +79,16 @@ def get_a_dep(d):
7979
# Init git deps if not existed
8080
if not p.exists():
8181
p.mkdir(parents=True)
82-
subprocess.run("{} init".format(git_cmd), shell=True)
83-
subprocess.run("{} remote add origin {}".format(git_cmd, url), shell=True)
82+
subprocess.run("{} init".format(git_cmd), shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
83+
subprocess.run("{} remote add origin {}".format(git_cmd, url), shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
8484

8585
# Check if commit is already fetched
8686
result = subprocess.run("{} rev-parse HEAD".format(git_cmd, commit), shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
8787
head = result.stdout.decode("utf-8").splitlines()[0]
8888

8989
if commit != head:
9090
subprocess.run("{} fetch --depth 1 origin {}".format(git_cmd, commit), shell=True)
91-
subprocess.run("{} checkout FETCH_HEAD".format(git_cmd), shell=True)
91+
subprocess.run("{} checkout FETCH_HEAD".format(git_cmd), shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
9292

9393
return 0
9494

0 commit comments

Comments
 (0)