X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=builtin-reflog.c;h=196fa03b7fac795475a0e12f0fa3b443cb34bd1d;hb=1b118da8bd1878d78589afd9f755b9d52a9579ad;hp=0c34e378199064e87aa09caf0fa0a2346333ec69;hpb=93310a40eb022a0e36e7c618921931d8ffc31fd1;p=git.git diff --git a/builtin-reflog.c b/builtin-reflog.c index 0c34e3781..196fa03b7 100644 --- a/builtin-reflog.c +++ b/builtin-reflog.c @@ -604,8 +604,8 @@ static int cmd_reflog_delete(int argc, const char **argv, const char *prefix) continue; } - if (!dwim_ref(argv[i], spec - argv[i], sha1, &ref)) { - status |= error("%s points nowhere!", argv[i]); + if (!dwim_log(argv[i], spec - argv[i], sha1, &ref)) { + status |= error("no reflog for '%s'", argv[i]); continue; }