summaryrefslogtreecommitdiff
path: root/src/status.c
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2012-04-23 10:06:31 -0700
committerRussell Belfer <rb@github.com>2012-04-23 10:06:31 -0700
commit26515e73a11b6f6c25e316ece2a6243aba7af9f5 (patch)
treea7a1ef59769a12033c812958c0fb17c7220e3188 /src/status.c
parent44ef8b1b300f0cd3d8572fa1b40d257462f28240 (diff)
downloadlibgit2-26515e73a11b6f6c25e316ece2a6243aba7af9f5.tar.gz
Rename to git_reference_name_to_oid
Diffstat (limited to 'src/status.c')
-rw-r--r--src/status.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/status.c b/src/status.c
index d4f59e355..62cc37e2e 100644
--- a/src/status.c
+++ b/src/status.c
@@ -23,7 +23,7 @@ static int resolve_head_to_tree(git_tree **tree, git_repository *repo)
git_oid head_oid;
git_object *obj = NULL;
- if (git_reference_lookup_oid(&head_oid, repo, GIT_HEAD_FILE) < 0) {
+ if (git_reference_name_to_oid(&head_oid, repo, GIT_HEAD_FILE) < 0) {
/* cannot resolve HEAD - probably brand new repo */
giterr_clear();
*tree = NULL;