소스 검색

Add missing git config

Matthew Wang 11 년 전
부모
커밋
fc9d859705
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3
    2
      tests/test_cdiff.py

+ 3
- 2
tests/test_cdiff.py 파일 보기

@@ -364,8 +364,9 @@ class TestMain(unittest.TestCase):
364 364
         self._cwd = os.getcwd()
365 365
         self._ws = tempfile.mkdtemp(prefix='test_cdiff')
366 366
         self._non_ws = tempfile.mkdtemp(prefix='test_cdiff')
367
-        cmd = ['git', 'init', self._ws]
368
-        subprocess.call(cmd, stdout=subprocess.PIPE)
367
+        cmd = ('cd %s; git init; git config user.name me; '
368
+               'git config user.email me@example.org') % self._ws
369
+        subprocess.call(cmd, shell=True, stdout=subprocess.PIPE)
369 370
         self._change_file('init')
370 371
 
371 372
     def tearDown(self):