git-cl patch: set metadata before (failing to) apply patch
If the commit or cherry-pick command fails, git automatically drops the user into a state where they can try to manually fix it. That's great. But with the old call order, it would also leave the metadata unset. This sets the issue and patchset number before doing the potentially-failing heavy lifting, so that the branch will be in a consistent state after the user finishes fixing up the failed command. BUG=701130 Change-Id: I792b9fb9e61ba62626c19aa1837d21f8cd8f594e Reviewed-on: https://chromium-review.googlesource.com/456039Reviewed-by: Andrii Shyshkalov <tandrii@chromium.org> Commit-Queue: Aaron Gable <agable@chromium.org>
Showing
Please
register
or
sign in
to comment