summaryrefslogtreecommitdiff
path: root/src/revparse.c
diff options
context:
space:
mode:
authorBen Straub <bs@github.com>2013-10-28 06:20:28 -0700
committerBen Straub <bs@github.com>2013-10-28 06:20:28 -0700
commit8f4a8b096ba35a2af3f9c51dad7e0402790b58ac (patch)
tree80a707dd35672be1f88506c04058b7fad9947fa6 /src/revparse.c
parenta1efa5960d8f874b92403d875bf08a22c7be2437 (diff)
parent0174794a955dbec1e2d9ecf581833fc23c7e844c (diff)
downloadlibgit2-8f4a8b096ba35a2af3f9c51dad7e0402790b58ac.tar.gz
Merge pull request #1802 from libgit2/cmn/reflog-backend
Make reflog part of refdb
Diffstat (limited to 'src/revparse.c')
-rw-r--r--src/revparse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/revparse.c b/src/revparse.c
index e470a954d..c120b466f 100644
--- a/src/revparse.c
+++ b/src/revparse.c
@@ -160,7 +160,7 @@ static int retrieve_previously_checked_out_branch_or_revision(git_object **out,
if (git_reference_lookup(&ref, repo, GIT_HEAD_FILE) < 0)
goto cleanup;
- if (git_reflog_read(&reflog, ref) < 0)
+ if (git_reflog_read(&reflog, repo, GIT_HEAD_FILE) < 0)
goto cleanup;
numentries = git_reflog_entrycount(reflog);
@@ -208,7 +208,7 @@ static int retrieve_oid_from_reflog(git_oid *oid, git_reference *ref, size_t ide
const git_reflog_entry *entry;
bool search_by_pos = (identifier <= 100000000);
- if (git_reflog_read(&reflog, ref) < 0)
+ if (git_reflog_read(&reflog, git_reference_owner(ref), git_reference_name(ref)) < 0)
return -1;
numentries = git_reflog_entrycount(reflog);