dir: free untracked cache when removing it
[gitweb.git] / builtin / ls-remote.c
index a31024900b0a812c94dfa86024cdf45df36b96a1..fa65a8448aadcb2d26613867cab7822e02e4853c 100644 (file)
@@ -125,7 +125,7 @@ int cmd_ls_remote(int argc, const char **argv, const char *prefix)
                        continue;
                if (!tail_match(pattern, ref->name))
                        continue;
-               printf("%s      %s\n", sha1_to_hex(ref->old_sha1), ref->name);
+               printf("%s      %s\n", oid_to_hex(&ref->old_oid), ref->name);
                status = 0; /* we found something */
        }
        return status;