Exemple #1
0
 def mkdir(self, path):
     try:
         os.makedirs(path)
         
         if self.debug and self.git:
             self.print_(self, u'Initializing git repo at {0}'.format(path))
             from git import repo
             from git import Git
             repo = Git(path)
             repo.init()
             self.git_objects.append(repo)
     except:
         self.fatal_error(self, 'Output directory {0} already exists'.format(path))
Exemple #2
0
 def mkdir(self, path):
     try:
         os.makedirs(path)
         
         if self.debug and self.git:
             self.print_(self, u'Initializing git repo at {0}'.format(path))
             from git import repo
             from git import Git
             repo = Git(path)
             repo.init()
             self.git_objects.append(repo)
     except:
         self.fatal_error(self, 'Output directory {0} already exists or could not init git. If you are running with --debug, try installing GitPython.'.format(path))
Exemple #3
0
    def mkdir(self, path):
        try:
            os.makedirs(path)

            if self.debug and self.git:
                self.print_(self, u'Initializing git repo at {0}'.format(path))
                from git import repo
                from git import Git
                repo = Git(path)
                repo.init()
                self.git_objects.append(repo)
        except:
            self.fatal_error(
                self, 'Output directory {0} already exists'.format(path))