Avoid unnecessary invocations of "git fetch"
Avoid unnecessary invocations of "git fetch"

If we already have the correct commit, it is not necessary to fetch.  Any
fetches can takes minutes due to gerrit problems, and often fail
completely, so it is helpful to avoid them completely whenever we can.

Bug: 938627

Change-Id: I54494cad9b9aa0090f51674b6b9f56bb3e842f12
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1504102
Commit-Queue: Michael Spang <e1fb1a05abba8fb04acbcbe6d766da7764320db0@chromium.org>
Reviewed-by: Edward Lesmes <d05609f027dc667cc37492b1dc1bdea5d60fa82a@chromium.org>

CoherentLabs/depot_tools,CoherentLabs/depot_tools