# File lib/grit/git.rb, line 187 def raw_git_call(command, index) tmp = ENV['GIT_INDEX_FILE'] ENV['GIT_INDEX_FILE'] = index out = `#{command}` after = ENV['GIT_INDEX_FILE'] # someone fucking with us ?? ENV['GIT_INDEX_FILE'] = tmp if after != index raise 'environment was changed for the git call' end [out, $?.exitstatus] end