mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 16:31:41 +00:00
fix: no usar Dir.chdir
This commit is contained in:
parent
4064d41855
commit
224bdeecca
1 changed files with 2 additions and 4 deletions
|
@ -158,10 +158,8 @@ class Site
|
||||||
cmd = 'git gc'
|
cmd = 'git gc'
|
||||||
|
|
||||||
r = nil
|
r = nil
|
||||||
Dir.chdir(path) do
|
Open3.popen2e(env, cmd, unsetenv_others: true, chdir: path) do |_, _, t|
|
||||||
Open3.popen2e(env, cmd, unsetenv_others: true) do |_, _, t|
|
r = t.value
|
||||||
r = t.value
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
r&.success?
|
r&.success?
|
||||||
|
|
Loading…
Reference in a new issue