diff options
| author | Carlos Martín Nieto <[email protected]> | 2014-04-01 12:13:37 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <[email protected]> | 2014-04-01 12:36:44 +0200 |
| commit | a06f4a030a90129db76e5a741a73bba5b27cda29 (patch) | |
| tree | 436e57b23c5bdfb36054f843e2fc4e55b66d8aef /branch.go | |
| parent | 286ff62b14f2471e58ed3dd93df50d2bbd4fc028 (diff) | |
Adjust to Go tip changes
It does not like breaking aliasing rules, so let's keep a casted pointer
for when libgit2 wants that.
Diffstat (limited to 'branch.go')
| -rw-r--r-- | branch.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -43,7 +43,7 @@ func (repo *Repository) CreateBranch(branchName string, target *Commit, force bo runtime.LockOSThread() defer runtime.UnlockOSThread() - ret := C.git_branch_create(&ref.ptr, repo.ptr, cBranchName, target.ptr, cForce, cSignature, cmsg) + ret := C.git_branch_create(&ref.ptr, repo.ptr, cBranchName, target.cast_ptr, cForce, cSignature, cmsg) if ret < 0 { return nil, MakeGitError(ret) } |
