diff --git a/remote.go b/remote.go index 74ebe27..f13bad3 100644 --- a/remote.go +++ b/remote.go @@ -433,6 +433,14 @@ func (o *Remote) RefspecCount() uint { return uint(C.git_remote_refspec_count(o.ptr)) } +func (o *Remote) SetUpdateFetchHead(val bool) { + C.git_remote_set_update_fetchhead(o.ptr, cbool(val)) +} + +func (o *Remote) UpdateFetchHead() bool { + return C.git_remote_update_fetchhead(o.ptr) > 0 +} + func (o *Remote) Fetch(sig *Signature, msg string) error { var csig *C.git_signature = nil diff --git a/vendor/libgit2 b/vendor/libgit2 index 89e05e2..e0383fa 160000 --- a/vendor/libgit2 +++ b/vendor/libgit2 @@ -1 +1 @@ -Subproject commit 89e05e2ab19ac452e84e0eaa2dfb8e07ac6839bf +Subproject commit e0383fa35f981c656043976a43c61bff059cb709