Skip to content

Commit

Permalink
more terse and more correct
Browse files Browse the repository at this point in the history
  • Loading branch information
davetron5000 committed Jun 20, 2009
1 parent 8c4ec13 commit a88d1d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/grit/git.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def self.with_timeout(timeout = 10.seconds)

def initialize(git_dir)
self.git_dir = git_dir
self.work_tree = git_dir =~ /\.git$/ ? git_dir.gsub(/\/git$/,'') : git_dir
self.work_tree = git_dir.gsub(/\/\.git$/,'')
self.bytes_read = 0
end

Expand Down

0 comments on commit a88d1d9

Please sign in to comment.