File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -2425,8 +2425,7 @@ static struct commit *find_single_final(struct rev_info *revs,
2425
2425
struct object * obj = revs -> pending .objects [i ].item ;
2426
2426
if (obj -> flags & UNINTERESTING )
2427
2427
continue ;
2428
- while (obj -> type == OBJ_TAG )
2429
- obj = deref_tag (obj , NULL , 0 );
2428
+ obj = deref_tag (obj , NULL , 0 );
2430
2429
if (obj -> type != OBJ_COMMIT )
2431
2430
die ("Non commit %s?" , revs -> pending .objects [i ].name );
2432
2431
if (found )
@@ -2461,8 +2460,7 @@ static char *prepare_initial(struct scoreboard *sb)
2461
2460
struct object * obj = revs -> pending .objects [i ].item ;
2462
2461
if (!(obj -> flags & UNINTERESTING ))
2463
2462
continue ;
2464
- while (obj -> type == OBJ_TAG )
2465
- obj = deref_tag (obj , NULL , 0 );
2463
+ obj = deref_tag (obj , NULL , 0 );
2466
2464
if (obj -> type != OBJ_COMMIT )
2467
2465
die ("Non commit %s?" , revs -> pending .objects [i ].name );
2468
2466
if (sb -> final )
Original file line number Diff line number Diff line change @@ -480,8 +480,7 @@ static struct commit *check_single_commit(struct rev_info *revs)
480
480
struct object * obj = revs -> pending .objects [i ].item ;
481
481
if (obj -> flags & UNINTERESTING )
482
482
continue ;
483
- while (obj -> type == OBJ_TAG )
484
- obj = deref_tag (obj , NULL , 0 );
483
+ obj = deref_tag (obj , NULL , 0 );
485
484
if (obj -> type != OBJ_COMMIT )
486
485
die ("Non commit %s?" , revs -> pending .objects [i ].name );
487
486
if (commit )
You can’t perform that action at this time.
0 commit comments