Fix squash_current_branch on dirty submodules
If there are dirty submodules, git commit -a will commit those which is not desired. Turns out we don't need to use -a, since reset --soft stages all changes anyways and we can just use git commit. Note that there is a check prior to commit to ensure we are not creating an empty commit. R=jojwang Fixed: 1478668 Change-Id: Iaa1ff8e638b7431511e6e194ad59e3c4adb39deb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4858836 Auto-Submit: Josip Sokcevic <sokcevic@chromium.org> Reviewed-by: Joanna Wang <jojwang@chromium.org> Commit-Queue: Joanna Wang <jojwang@chromium.org>changes/36/4858836/2
parent
d4dfff088c
commit
4a4428445d
Loading…
Reference in New Issue