5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 14:41: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,11 +158,9 @@ class Site
cmd = 'git gc'
r = nil
Dir.chdir(path) do
Open3.popen2e(env, cmd, unsetenv_others: true) do |_, _, t|
Open3.popen2e(env, cmd, unsetenv_others: true, chdir: path) do |_, _, t|
r = t.value
end
end
r&.success?
end