Support git_repository_message, git_repository_message_remove (#734) #737

Merged
github-actions[bot] merged 2 commits from cherry-pick-532740083-release-0.27 into release-0.27 2021-02-03 08:29:15 -06:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit ae4f21273b - Show all commits

View File

@ -699,7 +699,7 @@ func (r *Repository) ClearGitIgnoreRules() error {
// the file after you create the commit. // the file after you create the commit.
func (r *Repository) Message() (string, error) { func (r *Repository) Message() (string, error) {
buf := C.git_buf{} buf := C.git_buf{}
defer C.git_buf_dispose(&buf) defer C.git_buf_free(&buf)
runtime.LockOSThread() runtime.LockOSThread()
defer runtime.UnlockOSThread() defer runtime.UnlockOSThread()