Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistPatchWorkflow.php
Show First 20 Lines • Show All 737 Lines • ▼ Show 20 Lines | if ($repository_api instanceof ArcanistSubversionAPI) { | ||||
// this submodule update, but we want to leave the working copy in a | // this submodule update, but we want to leave the working copy in a | ||||
// clean state anyway, so we're going to have to do an update at some | // clean state anyway, so we're going to have to do an update at some | ||||
// point. This usually doesn't cost us anything. | // point. This usually doesn't cost us anything. | ||||
$repository_api->execPassthru('submodule update --init --recursive'); | $repository_api->execPassthru('submodule update --init --recursive'); | ||||
if ($this->shouldCommit()) { | if ($this->shouldCommit()) { | ||||
$flags = array(); | $flags = array(); | ||||
if ($bundle->getFullAuthor()) { | if ($bundle->getFullAuthor()) { | ||||
$flags[] = csprintf('--author=%s', $bundle->getFullAuthor()); | $flags[] = sprintf('--author=%s', $bundle->getFullAuthor()); | ||||
} | } | ||||
$commit_message = $this->getCommitMessage($bundle); | $commit_message = $this->getCommitMessage($bundle); | ||||
$future = $repository_api->execFutureLocal( | $future = $repository_api->execFutureLocal( | ||||
'commit -a %Ls -F - --no-verify', | 'commit -a %Ls -F - --no-verify', | ||||
$flags); | $flags); | ||||
$future->write($commit_message); | $future->write($commit_message); | ||||
▲ Show 20 Lines • Show All 390 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0