diff options
Diffstat (limited to 'builtin-blame.c')
-rw-r--r-- | builtin-blame.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin-blame.c b/builtin-blame.c index 98e818ce6a..10f7eacf6e 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)); |