Skip to content

Commit e484a63

Browse files
committed
Reference iteration, take 3
Hopefully correct this time: - iterating with globs assumes the glob is a full name, e.g. 'refs/heads/test-*' or 'H*' - iterating without a glob uses a default glob of 'refs/*'
1 parent 34bcf95 commit e484a63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redis/hiredis.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ int hiredis_refdb_backend__iterator(git_reference_iterator **_iter, struct git_r
342342

343343
backend = (hiredis_refdb_backend *) _backend;
344344

345-
reply = redisCommand(backend->db, "KEYS %s:%s:refdb:%s", backend->prefix, backend->repo_path, (glob != NULL ? glob : "*"));
345+
reply = redisCommand(backend->db, "KEYS %s:%s:refdb:%s", backend->prefix, backend->repo_path, (glob != NULL ? glob : "refs/*"));
346346
if(reply->type != REDIS_REPLY_ARRAY) {
347347
freeReplyObject(reply);
348348
giterr_set_str(GITERR_REFERENCE, "Redis refdb storage error");

0 commit comments

Comments
 (0)