summaryrefslogtreecommitdiff
path: root/bisect.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-03-01 09:09:21 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-03-01 09:09:21 (GMT)
commit9e2b8857413127ae200735fa004bd445b2c8ca61 (patch)
tree95cf29ebc03633d30a458dc4da8c4cf70555b0a7 /bisect.c
parentdc05d73104fda239fc03342e0b53aa5741c53531 (diff)
parent8f69f72fca989b3ba080aab1dc24bfd1709ce83a (diff)
downloadgit-9e2b8857413127ae200735fa004bd445b2c8ca61.zip
git-9e2b8857413127ae200735fa004bd445b2c8ca61.tar.gz
git-9e2b8857413127ae200735fa004bd445b2c8ca61.tar.bz2
Merge branch 'cc/maint-bisect-paths'
* cc/maint-bisect-paths: bisect: error out when passing bad path parameters
Diffstat (limited to 'bisect.c')
-rw-r--r--bisect.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/bisect.c b/bisect.c
index 6dc27ee..b556b11 100644
--- a/bisect.c
+++ b/bisect.c
@@ -986,6 +986,12 @@ int bisect_next_all(const char *prefix)
exit(1);
}
+ if (!all) {
+ fprintf(stderr, "No testable commit found.\n"
+ "Maybe you started with bad path parameters?\n");
+ exit(4);
+ }
+
bisect_rev = revs.commits->item->object.sha1;
memcpy(bisect_rev_hex, sha1_to_hex(bisect_rev), 41);