Merge branch 'sb/prepare-revision-walk-error-check'
* sb/prepare-revision-walk-error-check: prepare_revision_walk(): check for return value in all places
This commit is contained in:
3
remote.c
3
remote.c
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user