X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=builtin-reflog.c;h=d95f515f2e32aa71c3a09fe5ed9486f352713360;hb=6e13921b4f7adcc7316a76c0c4955b85b1589a65;hp=da96da317be01c24ae9711206976f48f33e39f97;hpb=a4f34cbb4cea1f0b0e625b528f269f4b517c64f8;p=git.git diff --git a/builtin-reflog.c b/builtin-reflog.c index da96da317..d95f515f2 100644 --- a/builtin-reflog.c +++ b/builtin-reflog.c @@ -540,11 +540,11 @@ static int cmd_reflog_expire(int argc, const char **argv, const char *prefix) free(collected.e); } - while (i < argc) { - const char *ref = argv[i++]; + for (; i < argc; i++) { + char *ref; unsigned char sha1[20]; - if (!resolve_ref(ref, sha1, 1, NULL)) { - status |= error("%s points nowhere!", ref); + if (!dwim_log(argv[i], strlen(argv[i]), sha1, &ref)) { + status |= error("%s points nowhere!", argv[i]); continue; } set_reflog_expiry_param(&cb, explicit_expiry, ref);