One thought: You could test exit status on git ls-remote faraway
. This will actually force communication with the remote, instead of just looking for its presence or absence locally.
if git ls-remote --exit-code faraway; then
....
fi
One thought: You could test exit status on git ls-remote faraway
. This will actually force communication with the remote, instead of just looking for its presence or absence locally.
if git ls-remote --exit-code faraway; then
....
fi