diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-03-07 14:53:35 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-03-07 14:53:35 -0800 |
commit | 7f43e75adc1c238f27a89b4e7a30a1c874fd01f9 (patch) | |
tree | 493e3f5646c5540b690b28e9136a8b5b3911e15f /bisect.c | |
parent | e8a285e553f8c6c04820a542b2a28816a9d62d3c (diff) | |
parent | 8f69f72fca989b3ba080aab1dc24bfd1709ce83a (diff) | |
download | git-7f43e75adc1c238f27a89b4e7a30a1c874fd01f9.tar.gz |
Merge branch 'cc/maint-bisect-paths' into maint-1.6.6
* 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); |