X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=builtin-blame.c;h=10f7eacf6e881cdb54a6b4a4c0aafc5f9751e5a9;hb=e8b14d7e3fa5194fbc776cdd253b0b5403b2226d;hp=98e818ce6a63b352182b428b49464596d37a0617;hpb=806e5c8682c8621b19529c21899dcb14a1035d11;p=git.git diff --git a/builtin-blame.c b/builtin-blame.c index 98e818ce6..10f7eacf6 100644 --- a/builtin-blame.c +++ b/builtin-blame.c @@ -2365,6 +2365,7 @@ parse_done: die_errno("cannot stat path '%s'", path); } + revs.disable_stdin = 1; setup_revisions(argc, argv, &revs, NULL); memset(&sb, 0, sizeof(sb)); @@ -2432,7 +2433,7 @@ parse_done: if (top < 1) top = lno; bottom--; - if (lno < top) + if (lno < top || lno < bottom) die("file %s has only %lu lines", path, lno); ent = xcalloc(1, sizeof(*ent));