]> khamidou — GitHub mirrors - arcanist.git/commit
Make arc patch slightly better about submodules
authorBob Trahan <bob.trahan@gmail.com>
Wed, 28 Aug 2013 23:47:30 +0000 (16:47 -0700)
committerBob Trahan <bob.trahan@gmail.com>
Wed, 28 Aug 2013 23:47:30 +0000 (16:47 -0700)
commit96a47759ae4c16a700e3ed121e3c80861be51a17
tree9bcfca232bea82fa9cd1e29a888a6a7f3bff3c80
parent3ad72195bfc187c8d5e573f9ef0659b286aec327
Make arc patch slightly better about submodules

Summary:
Ref T3776, Ref T479. Say you have some DN, with a submodule X@Y. Later, X@Z in your working copy / repo. If you run arc patch DN, you'd end up with a dirty working copy claiming that X@Z was wrong and it should be X@Y.

To fix, basically run 'submodule init' and 'submodule update'. This makes it so after "arc patch" if you run "git status" it looks clean.

Gross part though now is if you then "git checkout master" you'll have a dirty checkout the other way. I think this is better though.

Test Plan: made a new repository where I added libphutil @ X, did some work (DX), then made libphutil @ y. When I arc patch'd DX, things looked good!

Reviewers: epriestley

Reviewed By: epriestley

CC: csilvers, Korvin, aran
Maniphest Tasks: T479, T3776

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