fix missing .git extensions on urls, added test to check for them

@dirk-thomas @tfoote