Fix git dependency URL updating

This addresses issue #1727. The change ensures that git dependencies will always update by checking for `_resolved`.