diff --git a/lib/tachikoma/application.rb b/lib/tachikoma/application.rb index d70e0f3..b29cc7c 100644 --- a/lib/tachikoma/application.rb +++ b/lib/tachikoma/application.rb @@ -116,9 +116,9 @@ def authorized_url_with_type(fetch_url, type, github_token, github_account) uri = URI.parse(fetch_url) case type when 'fork' - %Q!#{uri.scheme}://#{github_token}@#{uri.host}#{path_for_fork(uri.path, github_account)}! + %Q!#{uri.scheme}://#{github_token}:x-oauth-basic@#{uri.host}#{path_for_fork(uri.path, github_account)}! when 'shared', 'private' - "#{uri.scheme}://#{github_token}@#{uri.host}#{uri.path}" + "#{uri.scheme}://#{github_token}:x-oauth-basic@#{uri.host}#{uri.path}" else raise "Invalid type #{type}" end