From 8a7653c1e4b1305b95db7e65c7ad00d2a50bbce1 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 27 Jan 2019 00:21:51 +0000 Subject: solver: hold patches in temporary directory We can avoid bumping up RLIMIT_NOFILE too much by storing patches in a temporary directory. And we can share this top-level directory with our temporary git repository. Since we no longer rely on a working-tree for git, we are free to rearrange the layout and avoid relying on the ".git" convention and relying on "git -C" for chdir. This may also ease porting public-inbox to older systems where git does not support "-C" for chdir. --- lib/PublicInbox/Git.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/Git.pm') diff --git a/lib/PublicInbox/Git.pm b/lib/PublicInbox/Git.pm index a0b934a3..3ad08112 100644 --- a/lib/PublicInbox/Git.pm +++ b/lib/PublicInbox/Git.pm @@ -50,7 +50,7 @@ sub new { my ($class, $git_dir) = @_; my @st; $st[7] = $st[10] = 0; - # may contain {-wt} field (working-tree (File::Temp::Dir)) + # may contain {-tmp} field for File::Temp::Dir bless { git_dir => $git_dir, st => \@st }, $class } -- cgit v1.2.3-24-ge0c7