diff --git a/reflog-walk.c b/reflog-walk.c
index 0cf2f7dbad8b7662f4cdd08f398f7fe1ab874d8e..5d81d39a525830f6bacba88143ab6a4552748441 100644 (file)
--- a/reflog-walk.c
+++ b/reflog-walk.c
} else
recno = 0;
- item = string_list_lookup(branch, &info->complete_reflogs);
+ item = string_list_lookup(&info->complete_reflogs, branch);
if (item)
reflogs = item->util;
else {
}
if (!reflogs || reflogs->nr == 0)
return -1;
- string_list_insert(branch, &info->complete_reflogs)->util
+ string_list_insert(&info->complete_reflogs, branch)->util
= reflogs;
}