Correct handling of result of 'git ls-remote'