Page MenuHomePhabricator

D14233.id34369.diff
No OneTemporary

D14233.id34369.diff

diff --git a/src/parser/__tests__/ArcanistBundleTestCase.php b/src/parser/__tests__/ArcanistBundleTestCase.php
--- a/src/parser/__tests__/ArcanistBundleTestCase.php
+++ b/src/parser/__tests__/ArcanistBundleTestCase.php
@@ -137,9 +137,15 @@
throw $ex;
}
- $author = 'unit-test <unit-test@phabricator.com>';
-
- execx('git commit --author %s -m %s', $author, $subject);
+ // If these aren't configured, Git complains even if we pass --author.
+ $git_name = 'unit-test';
+ $git_email = 'unit-test@phabricator.com';
+
+ execx(
+ 'git -c user.name=%s -c user.email=%s commit -m %s',
+ $git_name,
+ $git_email,
+ $subject);
list($result_hash) = execx('git log -n1 --format=%s', '%T');
$result_hash = trim($result_hash);

File Metadata

Mime Type
text/plain
Expires
Wed, Mar 5, 7:42 AM (2 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7221829
Default Alt Text
D14233.id34369.diff (807 B)

Event Timeline