Skip to content

Commit

Permalink
Merge pull request dtao#58 from kenchan/support_older_git
Browse files Browse the repository at this point in the history
add support for older git versions (1.7.x)
  • Loading branch information
sanemat committed Dec 16, 2013
2 parents b40c49d + e97b2e9 commit 9719c94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tachikoma/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9719c94

Please sign in to comment.