def createGitRepository():
# Create the git repository, or change into it if it exists
datastore = 'datastore'
if not os.path.isdir(datastore):
os.makedirs(datastore)
git.Repo.init(datastore)
repo = git.Repo(datastore)
os.chdir(datastore)
return repo
papi_create_datastore_new.py 文件源码
python
阅读 20
收藏 0
点赞 0
评论 0
评论列表
文章目录