diff options
| author | Russell Belfer <rb@github.com> | 2012-04-23 10:06:31 -0700 |
|---|---|---|
| committer | Russell Belfer <rb@github.com> | 2012-04-23 10:06:31 -0700 |
| commit | 26515e73a11b6f6c25e316ece2a6243aba7af9f5 (patch) | |
| tree | a7a1ef59769a12033c812958c0fb17c7220e3188 /src/status.c | |
| parent | 44ef8b1b300f0cd3d8572fa1b40d257462f28240 (diff) | |
| download | libgit2-26515e73a11b6f6c25e316ece2a6243aba7af9f5.tar.gz | |
Rename to git_reference_name_to_oid
Diffstat (limited to 'src/status.c')
| -rw-r--r-- | src/status.c | 2 |
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; |
