Beispiel #1
0
 def test_init_repo(self):
     init_repo()
     try:
         self.repo.lookup_reference(self.branchref)
     except KeyError:
         self.fail('{} does not exist'.format(self.branchref))
     self.assert_commit_count(1)
     self.assert_file_exists('config/tigetrc')
Beispiel #2
0
def main():
    load_plugin('tiget.core')
    try:
        init_repo()
    except GitError as e:
        print_error(e)
        sys.exit(1)
    except Exception as e:
        post_mortem()
        sys.exit(1)
Beispiel #3
0
 def test_already_initialized(self):
     init_repo()
     print(self.repo.path)
     assert_raises(GitError, init_repo)