diff options
author | Junio C Hamano <gitster@pobox.com> | 2014-09-09 12:54:03 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-09-09 12:54:03 -0700 |
commit | 715b63ceb3c71fb748ec1e46680d96e025e9c75d (patch) | |
tree | 156505f9d8bb9228d5ad135a6063e460ec2cfe13 /remote.c | |
parent | 929df991c25497ecdaf1cd605eec1b3ac4f1c6e5 (diff) | |
parent | 81c3ce3cdce8dffb913243f5b2cc09d9fb966e6c (diff) | |
download | git-715b63ceb3c71fb748ec1e46680d96e025e9c75d.tar.gz |
Merge branch 'sb/prepare-revision-walk-error-check'
* sb/prepare-revision-walk-error-check:
prepare_revision_walk(): check for return value in all places
Diffstat (limited to 'remote.c')
-rw-r--r-- | remote.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1922,7 +1922,8 @@ int stat_tracking_info(struct branch *branch, int *num_ours, int *num_theirs) init_revisions(&revs, NULL); setup_revisions(rev_argc, rev_argv, &revs, NULL); - prepare_revision_walk(&revs); + if (prepare_revision_walk(&revs)) + die("revision walk setup failed"); /* ... and count the commits on each side. */ *num_ours = 0; |