Skip to content

Commit af2993b

Browse files
committed
Merge pull request #1 from Neopallium/9ff1
make redis backend compile.
2 parents 60557a0 + 9ff1385 commit af2993b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

redis/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ ENDIF ()
1515

1616
# Compile and link libgit2
1717
INCLUDE_DIRECTORIES(${LIBGIT2_INCLUDE_DIRS} ${LIBHIREDIS_INCLUDE_DIRS})
18-
ADD_LIBRARY(git2-redis sqlite.c)
18+
ADD_LIBRARY(git2-redis hiredis.c)
1919
TARGET_LINK_LIBRARIES(git2-redis ${LIBGIT2_LIBRARIES} ${LIBHIREDIS_LIBRARIES})

redis/hiredis.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ int hiredis_backend__read_prefix(git_oid *out_oid,
110110
{
111111
if (len >= GIT_OID_HEXSZ) {
112112
/* Just match the full identifier */
113-
int error = hiredis_backend__read(data_p, len_p, type_p, backend, short_oid);
113+
int error = hiredis_backend__read(data_p, len_p, type_p, _backend, short_oid);
114114
if (error == GIT_SUCCESS)
115115
git_oid_cpy(out_oid, short_oid);
116116

0 commit comments

Comments
 (0)