diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-03-04 22:25:23 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-03-04 22:25:23 -0800 |
commit | ce5044df2a29c4f4979089b072aad43bccb3b9fd (patch) | |
tree | 1432db3858c686410831714052e52fbf4b7bdcdc /bisect.c | |
parent | 507665e4f4c87fa4ca8fbe8519e9d0cc36a93d3d (diff) | |
parent | 8f69f72fca989b3ba080aab1dc24bfd1709ce83a (diff) | |
download | git-ce5044df2a29c4f4979089b072aad43bccb3b9fd.tar.gz |
Merge branch 'cc/maint-bisect-paths' into maint
* cc/maint-bisect-paths:
bisect: error out when passing bad path parameters
Diffstat (limited to 'bisect.c')
-rw-r--r-- | bisect.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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); |