[Tests] Handle empty git hash

The app directory isn't marked as safe => a test fails for accessing nil
Not sure how there's only 1 test failing because of this.
Either way, this is more correct
This commit is contained in:
Earlopain 2024-01-12 22:56:20 +00:00
parent 3d1a53233b
commit cd188a797f
No known key found for this signature in database
GPG Key ID: 48860312319ADF61

View File

@ -5,7 +5,7 @@ module GitHelper
elsif system("type git > /dev/null && git rev-parse --show-toplevel > /dev/null")
@hash = `git rev-parse HEAD`.strip
else
@hash = nil
@hash = ""
end
end