mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-25 08:12:40 +01:00
Don't try to mark committed when running "arc amend --show".
This commit is contained in:
parent
f938293ea8
commit
16db51bc3c
1 changed files with 12 additions and 12 deletions
|
@ -107,19 +107,19 @@ EOTEXT
|
||||||
} else {
|
} else {
|
||||||
$repository_api->amendGitHeadCommit($message);
|
$repository_api->amendGitHeadCommit($message);
|
||||||
echo "Amended commit message.\n";
|
echo "Amended commit message.\n";
|
||||||
}
|
|
||||||
|
|
||||||
$working_copy = $this->getWorkingCopy();
|
$working_copy = $this->getWorkingCopy();
|
||||||
$remote_hooks = $working_copy->getConfig('remote_hooks_installed', false);
|
$remote_hooks = $working_copy->getConfig('remote_hooks_installed', false);
|
||||||
if (!$remote_hooks) {
|
if (!$remote_hooks) {
|
||||||
echo "According to .arcconfig, remote commit hooks are not installed ".
|
echo "According to .arcconfig, remote commit hooks are not installed ".
|
||||||
"for this project, so the revision will be marked committed now. ".
|
"for this project, so the revision will be marked committed now. ".
|
||||||
"Consult the documentation for instructions on installing hooks.".
|
"Consult the documentation for instructions on installing hooks.".
|
||||||
"\n\n";
|
"\n\n";
|
||||||
$mark_workflow = $this->buildChildWorkflow(
|
$mark_workflow = $this->buildChildWorkflow(
|
||||||
'mark-committed',
|
'mark-committed',
|
||||||
array($revision_id));
|
array($revision_id));
|
||||||
$mark_workflow->run();
|
$mark_workflow->run();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue