5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 14:21:41 +00:00

fix: no usar Dir.chdir

This commit is contained in:
f 2023-07-03 13:10:39 -03:00
parent 4064d41855
commit 224bdeecca

View file

@ -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?