From: epriestley Date: Wed, 9 Feb 2011 17:39:17 +0000 (-0800) Subject: Don't try to mark committed when running "arc amend --show". X-Git-Tag: conduit-4~415 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=16db51bc3c4d54bb754175009ddcae9f814109ad;p=arcanist.git Don't try to mark committed when running "arc amend --show". --- diff --git a/src/workflow/amend/ArcanistAmendWorkflow.php b/src/workflow/amend/ArcanistAmendWorkflow.php index 0d124da1..e8801099 100644 --- a/src/workflow/amend/ArcanistAmendWorkflow.php +++ b/src/workflow/amend/ArcanistAmendWorkflow.php @@ -107,19 +107,19 @@ EOTEXT } else { $repository_api->amendGitHeadCommit($message); echo "Amended commit message.\n"; - } - $working_copy = $this->getWorkingCopy(); - $remote_hooks = $working_copy->getConfig('remote_hooks_installed', false); - if (!$remote_hooks) { - echo "According to .arcconfig, remote commit hooks are not installed ". - "for this project, so the revision will be marked committed now. ". - "Consult the documentation for instructions on installing hooks.". - "\n\n"; - $mark_workflow = $this->buildChildWorkflow( - 'mark-committed', - array($revision_id)); - $mark_workflow->run(); + $working_copy = $this->getWorkingCopy(); + $remote_hooks = $working_copy->getConfig('remote_hooks_installed', false); + if (!$remote_hooks) { + echo "According to .arcconfig, remote commit hooks are not installed ". + "for this project, so the revision will be marked committed now. ". + "Consult the documentation for instructions on installing hooks.". + "\n\n"; + $mark_workflow = $this->buildChildWorkflow( + 'mark-committed', + array($revision_id)); + $mark_workflow->run(); + } } return 0;