|
@@ -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):
|