X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=reflog-walk.c;h=4879615cad7527dc5346cd1a85bd56b9d11e052b;hb=0c357544b0d4415c464fb8b35593b21db1d1f7f7;hp=caba4f743f2dcc1cf7046cec294f242b2af19052;hpb=e33cc592deae8132936eea119554799e1039bc0f;p=thirdparty%2Fgit.git diff --git a/reflog-walk.c b/reflog-walk.c index caba4f743f..4879615cad 100644 --- a/reflog-walk.c +++ b/reflog-walk.c @@ -162,7 +162,7 @@ int add_reflog_for_walk(struct reflog_walk_info *info, } 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 { @@ -190,7 +190,7 @@ int add_reflog_for_walk(struct reflog_walk_info *info, } if (!reflogs || reflogs->nr == 0) return -1; - string_list_insert(branch, &info->complete_reflogs)->util + string_list_insert(&info->complete_reflogs, branch)->util = reflogs; }