mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 12:31:42 +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'
|
||||
|
||||
r = nil
|
||||
Dir.chdir(path) do
|
||||
Open3.popen2e(env, cmd, unsetenv_others: true) do |_, _, t|
|
||||
r = t.value
|
||||
end
|
||||
Open3.popen2e(env, cmd, unsetenv_others: true, chdir: path) do |_, _, t|
|
||||
r = t.value
|
||||
end
|
||||
|
||||
r&.success?
|
||||
|
|
Loading…
Reference in a new issue