We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f0db732 + 93d3011 commit f9ae4a7Copy full SHA for f9ae4a7
pack/set.go
@@ -60,6 +60,12 @@ func NewSet(db string) (*Set, error) {
60
// We have a pack (since it matched the regex), but the
61
// index is missing or unusable. Skip this pack and
62
// continue on with the next one, as Git does.
63
+ if idxf != nil {
64
+ // In the unlikely event that we did open a
65
+ // file, close it, but discard any error in
66
+ // doing so.
67
+ idxf.Close()
68
+ }
69
continue
70
}
71
0 commit comments