Просмотр исходного кода

Use --quiet when initializing git repositories in compat tests.

Jelmer Vernooij 14 лет назад
Родитель
Сommit
5eb51e6264
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      dulwich/tests/compat/test_client.py
  2. 1 1
      dulwich/tests/compat/utils.py

+ 1 - 1
dulwich/tests/compat/test_client.py

@@ -50,7 +50,7 @@ class DulwichClientTestBase(object):
         self.gitroot = os.path.dirname(import_repo_to_dir('server_new.export'))
         dest = os.path.join(self.gitroot, 'dest')
         file.ensure_dir_exists(dest)
-        run_git(['init', '--bare'], cwd=dest)
+        run_git(['init', '--quiet', '--bare'], cwd=dest)
 
     def tearDown(self):
         shutil.rmtree(self.gitroot)

+ 1 - 1
dulwich/tests/compat/utils.py

@@ -127,7 +127,7 @@ def import_repo_to_dir(name):
                                'repos', name)
     temp_repo_dir = os.path.join(temp_dir, name)
     export_file = open(export_path, 'rb')
-    run_git_or_fail(['init', '--bare', temp_repo_dir])
+    run_git_or_fail(['init', '--quiet', '--bare', temp_repo_dir])
     run_git_or_fail(['fast-import'], input=export_file.read(),
                     cwd=temp_repo_dir)
     export_file.close()