Esempio n. 1
0
 def _run_git(self, command, *args):
     """Run git command using test git directory."""
     if command == 'clone':
         return utils.run_git(command, args[0], self._dir('test'))
     return utils.run_git('--git-dir=' + self._dir('test', '.git'),
                          '--work-tree=' + self._dir('test'), command,
                          *args)
Esempio n. 2
0
 def _run_git(self, command, *args):
     """Run git command using test git directory."""
     if command == 'clone':
         return utils.run_git(command, args[0], self._dir('test'))
     return utils.run_git('--git-dir=' + self._dir('test', '.git'),
                          '--work-tree=' + self._dir('test'),
                          command, *args)
Esempio n. 3
0
 def _run_git(self, command, *args):
     """Run git command using test git directory."""
     if command == "clone":
         return utils.run_git(command, args[0], self._dir("test"))
     return utils.run_git(
         "--git-dir=" + self._dir("test", ".git"), "--work-tree=" + self._dir("test"), command, *args
     )