Skip to content

Commit

Permalink
Fix 'git-show-branch --list <head>'
Browse files Browse the repository at this point in the history
It mistakenly failed to output anything when given a single head.

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Sep 11, 2005
1 parent b595ed1 commit c9d023b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion show-branch.c
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ int main(int ac, char **av)
return show_independent(rev, num_rev, ref_name, rev_mask);

/* Show list; --more=-1 means list-only */
if (1 < num_rev) {
if (1 < num_rev || extra < 0) {
for (i = 0; i < num_rev; i++) {
int j;
int is_head = rev_is_head(head_path,
Expand Down

0 comments on commit c9d023b

Please sign in to comment.