10 lines
254 B
Python
10 lines
254 B
Python
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 |