Skip to content

Commit

Permalink
fix awesome config thing
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed Aug 6, 2009
1 parent 0e38083 commit 007bd71
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/cijoe/config.rb
Expand Up @@ -14,8 +14,11 @@ def method_missing(command, *args)
end

def to_s
command = @parent ? "#{@parent}.#{@command}" : @command
`git config #{command}`.chomp
`git config #{config_string}`.chomp
end

def config_string
@parent ? "#{@parent.config_string}.#{@command}" : @command
end
end
end

0 comments on commit 007bd71

Please sign in to comment.