For forking non-github repos. What is the best way to find out if an url is a valid git repository? "homepage" is included in repos list as well as details in the github api.