1
Fork 0
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
dotfile-automator/project/utils/repos.py

20 lines
465 B
Python

import os
from . import config
def has_repo_cloned():
return os.path.isdir('./data')
def clone_public_data():
exit_code = 0
exit_code = os.system("git clone -b master --single-branch {} data"
.format(config.get('public_repo')))
return exit_code
def clone_private_data():
exit_code = 0
exit_code = os.system("git clone -b master --single-branch {} private_data"
.format(config.get('private_repo')))
return exit_code