Method: Git::Base#with_temp_working

Defined in:
lib/git/base.rb

#with_temp_working



788
789
790
791
792
793
794
795
# File 'lib/git/base.rb', line 788

def with_temp_working(&)
  tempfile = Tempfile.new('temp-workdir')
  temp_dir = tempfile.path
  tempfile.close
  tempfile.unlink
  Dir.mkdir(temp_dir, 0o700)
  with_working(temp_dir, &)
end