]> khamidou — GitHub mirrors - arcanist.git/commit
Tighten up "arc land"
authorBob Trahan <bob.trahan@gmail.com>
Thu, 5 Sep 2013 19:45:59 +0000 (12:45 -0700)
committerBob Trahan <bob.trahan@gmail.com>
Thu, 5 Sep 2013 19:45:59 +0000 (12:45 -0700)
commit67061480f92f5c0743a8402a34bd408341c63079
tree0967850da346ba390aed03207e956db7deb80c95
parentdb3581b8fa56eef0cebcc742fd392a19997f0cc3
Tighten up "arc land"

Summary:
Make sure on failure (restoreBranch()) we call `git submodule update --init --recursive` to handle all those purdy submodules. For the pushing step, wrap the push commands in the try / catch block so everything gets cleaned up nice if there's failure. BONUS - add --recursive to arc patch workflow to so nested submodules work correctly. (Crazy git users)

Fixes T3407, T2945.

Test Plan: I wasn't sure how to simulate a good "push" failure but I think this should work.

Reviewers: epriestley

Reviewed By: epriestley

CC: Korvin, aran
Maniphest Tasks: T2945, T3407

Differential Revision: https://secure.phabricator.com/D6885
src/workflow/ArcanistLandWorkflow.php
src/workflow/ArcanistPatchWorkflow.php