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:
parent
4064d41855
commit
224bdeecca
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue