remote: add keep-alive and references to the repository #387

Merged
carlosmn merged 2 commits from cmn/remote-refs into master 2017-07-04 07:09:43 -05:00

2 Commits

Author SHA1 Message Date
Carlos Martín Nieto bcf8c1bf40 travis: update the Go versions
We need to use `runtime.KeepAlive()` which only exists past Go 1.7. Furthermore,
Go 1.7 is the latest supported by the language team.
2017-07-04 13:02:12 +02:00
Carlos Martín Nieto 544d29e18b remote: add keep-alive and references to the repository
Especially in 1.8, the garbage collector can decide to finalize an object even
as we are in one of its methods. This means it can free a remote while we're in
one of its calls, as we're referencing the pointer inside the object, rather
than the `Remote` itself.
2017-07-04 12:53:51 +02:00