Validate repo/branch path, strip off .git extension