prepare_revision_walk(): check for return value in all places
[gitweb.git] / remote.c
index 0e9459cc0675d2f232b1c1fda62080d04aa88ec5..dc0c427968e534c74bd853b12e261c529f1f9588 100644 (file)
--- a/remote.c
+++ b/remote.c
@@ -1898,7 +1898,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;