summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlhchavez <[email protected]>2019-01-08 02:50:42 +0000
committerlhchavez <[email protected]>2019-01-08 02:50:42 +0000
commit35518c78df9ae727651212512bfaa1a8dae02585 (patch)
tree940d4379a9a5bc4cf883da8503cf44d65f271382
parentf505e39c9eac64264d6341cc925c5fa7f67b56cf (diff)
Keeping the tree alive
-rw-r--r--repository.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/repository.go b/repository.go
index 30673a7..2a4e9c8 100644
--- a/repository.go
+++ b/repository.go
@@ -450,6 +450,7 @@ func (v *Repository) CreateCommitFromIds(
runtime.KeepAlive(v)
runtime.KeepAlive(oid)
+ runtime.KeepAlive(tree)
runtime.KeepAlive(parents)
if ret < 0 {
return nil, MakeGitError(ret)