Skip to content

Commit

Permalink
Set PATH for git command.
Browse files Browse the repository at this point in the history
  • Loading branch information
psychs committed Aug 26, 2009
1 parent 431f5fc commit 34e61a8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vendor/cocoa_gist/lib/cocoa_gist.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class CocoaGist < OSX::NSObject
REQUEST_URL = OSX::NSURL.URLWithString('http://gist.github.com/gists')
TIMEOUT = 10
POLICY = 1 # NSURLRequestReloadIgnoringLocalCacheData
PATH_COMMAND = 'PATH=$PATH:/usr/local/bin:/opt/local/bin'

attr_accessor :delegate
attr_reader :connection, :response
Expand All @@ -15,8 +16,8 @@ def self.set_credentials(login, token)

def self.credentials
@credentials ||= {
'login' => `git config --global github.user`.strip,
'token' => `git config --global github.token`.strip
'login' => `#{PATH_COMMAND}; git config --global github.user`.strip,
'token' => `#{PATH_COMMAND}; git config --global github.token`.strip
}.reject { |_, v| v.empty? }
end

Expand Down

0 comments on commit 34e61a8

Please sign in to comment.