[git] avoid refetching SHA-pinned commit if already available