From e97b2e998f46885c08d95e9208116b49aad1ebb0 Mon Sep 17 00:00:00 2001 From: Kenichi TAKAHASHI Date: Mon, 16 Dec 2013 21:42:04 +0900 Subject: [PATCH] add support for older git versions (1.7.x) --- lib/tachikoma/application.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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