mirror of
https://we.phorge.it/source/arcanist.git
synced 2025-02-02 09:58:23 +01:00
Pass author config to git
with "-c x=y" instead of "--author"
Summary: See D14232. That didn't actually work. It looks like this does. Test Plan: - Ran `git commit --author ...` on build server and saw the same failure. - Ran `git -c ... -c ... commit ...` on build server and saw it work. Reviewers: chad Reviewed By: chad Differential Revision: https://secure.phabricator.com/D14233
This commit is contained in:
parent
6966be3e7e
commit
172c930630
1 changed files with 8 additions and 2 deletions
|
@ -137,9 +137,15 @@ final class ArcanistBundleTestCase extends PhutilTestCase {
|
||||||
throw $ex;
|
throw $ex;
|
||||||
}
|
}
|
||||||
|
|
||||||
$author = 'unit-test <unit-test@phabricator.com>';
|
// If these aren't configured, Git complains even if we pass --author.
|
||||||
|
$git_name = 'unit-test';
|
||||||
|
$git_email = 'unit-test@phabricator.com';
|
||||||
|
|
||||||
execx('git commit --author %s -m %s', $author, $subject);
|
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');
|
list($result_hash) = execx('git log -n1 --format=%s', '%T');
|
||||||
$result_hash = trim($result_hash);
|
$result_hash = trim($result_hash);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue