Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15283523
D14233.id34369.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
807 B
Referenced Files
None
Subscribers
None
D14233.id34369.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D14233: Pass author config to `git` with "-c x=y" instead of "--author"
Attached
Detach File
Event Timeline
Log In to Comment