initial commit
This commit is contained in:
10
pythonapp/Libs/git.py
Normal file
10
pythonapp/Libs/git.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import subprocess
|
||||
|
||||
|
||||
class git:
|
||||
@staticmethod
|
||||
def clone(url, output_path = None, git = 'git'):
|
||||
command = [git, 'clone', url]
|
||||
if output_path: command.append(output_path)
|
||||
result = subprocess.run(command)
|
||||
return result
|
||||
Reference in New Issue
Block a user