diff --git a/src/reflog.rs b/src/reflog.rs index 6996a89dae..b4ff7a0371 100644 --- a/src/reflog.rs +++ b/src/reflog.rs @@ -115,7 +115,7 @@ impl<'reflog> ReflogEntry<'reflog> { /// Get the old oid pub fn id_old(&self) -> Oid { - unsafe { Binding::from_raw(raw::git_reflog_entry_id_new(self.raw)) } + unsafe { Binding::from_raw(raw::git_reflog_entry_id_old(self.raw)) } } /// Get the log message, returning `None` on invalid UTF-8.