Skip to content

Commit ef9eda7

Browse files
committed
gitsave - catch all exceptions when attempting to read repo
1 parent b022248 commit ef9eda7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/server/sonicpi/lib/sonicpi/gitsave.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def initialize(path)
2121
@path = path
2222
begin
2323
@repo = Rugged::Repository.new(path + '/.git')
24-
rescue Rugged::OSError => e
24+
rescue
2525
@repo = Rugged::Repository.init_at path, false
2626
end
2727
end

0 commit comments

Comments
 (0)