Skip to content

Commit

Permalink
t6120 (describe): check --long properly
Browse files Browse the repository at this point in the history
Existing test checked --long only for exactly tagged commit.  We should
make sure it works sensibly for commits that are not tagged.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Junio C Hamano committed Mar 4, 2008
1 parent 3291fe4 commit 4d4c3e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions t/t6120-describe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ check_describe A-* --tags HEAD^^2
check_describe B --tags HEAD^^2^

check_describe B-0-* --long HEAD^^2^
check_describe A-3-* --long HEAD^^2

test_expect_success 'rename tag A to Q locally' '
mv .git/refs/tags/A .git/refs/tags/Q
Expand Down

0 comments on commit 4d4c3e1

Please sign in to comment.