def createProject( self, project ):
if shutil.which( git.Git.GIT_PYTHON_GIT_EXECUTABLE ) is None:
self.app.log.error( '"git" command line tool not found' )
return None
try:
return wb_git_project.GitProject( self.app, project, self )
except git.exc.InvalidGitRepositoryError as e:
self.log.error( 'Failed to add Git repo %r' % (project.path,) )
self.log.error( 'Git error: %s' % (e,) )
return None
#------------------------------------------------------------
评论列表
文章目录