Skip to content

Commit

Permalink
Added unset GIT_DIR to Git#in_repo command
Browse files Browse the repository at this point in the history
  • Loading branch information
karmi committed Apr 9, 2011
1 parent e5e62f7 commit 9cf72e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hide/git.rb
Expand Up @@ -16,7 +16,7 @@ def changed_files
end

def in_repo command
output = %x[git --git-dir=#{@path}/.git #{command} 2>&1]
output = %x[unset GIT_DIR && git --git-dir=#{@path}/.git #{command} 2>&1]
raise GitError, output unless $?.success?
output
end
Expand Down

0 comments on commit 9cf72e9

Please sign in to comment.