]> git.ipfire.org Git - thirdparty/git.git/blobdiff - reflog-walk.c
refs: print error message in debug output
[thirdparty/git.git] / reflog-walk.c
index e9cd3283694decbc6ea8e72c5681766129df793d..8ac4b284b6b6857a0a6d1f79eed563135771a291 100644 (file)
@@ -158,10 +158,9 @@ int add_reflog_for_walk(struct reflog_walk_info *info,
                }
                reflogs = read_complete_reflog(branch);
                if (!reflogs || reflogs->nr == 0) {
-                       struct object_id oid;
                        char *b;
                        int ret = dwim_log(branch, strlen(branch),
-                                          &oid, &b);
+                                          NULL, &b);
                        if (ret > 1)
                                free(b);
                        else if (ret == 1) {