summaryrefslogtreecommitdiff
path: root/src/transports/local.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2019-01-17 00:32:31 +0000
committerEdward Thomson <ethomson@edwardthomson.com>2019-01-17 10:32:29 +0000
commited8cfbf04181d6fc229582a09c5c7657a53cd2e3 (patch)
treeb0c4c06caecb92b497fef1567fe44f1808a00e7c /src/transports/local.c
parent87fe57889192e8c83d8da8eb916b31bed6931a89 (diff)
downloadlibgit2-ed8cfbf04181d6fc229582a09c5c7657a53cd2e3.tar.gz
references: use new names in internal usageethomson/git_ref
Update internal usage to use the `git_reference` names for constants.
Diffstat (limited to 'src/transports/local.c')
-rw-r--r--src/transports/local.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/transports/local.c b/src/transports/local.c
index 64a16891f..b8cc950ff 100644
--- a/src/transports/local.c
+++ b/src/transports/local.c
@@ -100,7 +100,7 @@ static int add_ref(transport_local *t, const char *name)
git_oid_cpy(&head->oid, &obj_id);
- if (git_reference_type(ref) == GIT_REF_SYMBOLIC) {
+ if (git_reference_type(ref) == GIT_REFERENCE_SYMBOLIC) {
head->symref_target = git__strdup(git_reference_symbolic_target(ref));
GITERR_CHECK_ALLOC(head->symref_target);
}
@@ -512,7 +512,7 @@ static int foreach_reference_cb(git_reference *reference, void *payload)
git_revwalk *walk = (git_revwalk *)payload;
int error;
- if (git_reference_type(reference) != GIT_REF_OID) {
+ if (git_reference_type(reference) != GIT_REFERENCE_DIRECT) {
git_reference_free(reference);
return 0;
}