git: use the new git.ls_remote function
git: use the new git.ls_remote function

The interface of this function is similar to the other Salt Git's functions
and it uses the 'identity' settings which is set in the state.

Fixes #8094

saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt