fix bug on git-ls-remote check