Skip to content
Snippets Groups Projects
Commit c801170b authored by Sebastian Staudt's avatar Sebastian Staudt Committed by Junio C Hamano
Browse files

t6120: test for describe with a bare repository


This ensures that nothing breaks the basic functionality of describe for
bare repositories. Please note that --broken and --dirty need a working
tree.

Signed-off-by: default avatarSebastian Staudt <koraktor@gmail.com>
Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
parent 2ed5c8e1
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -144,6 +144,12 @@ test_expect_success 'rename tag Q back to A' '
test_expect_success 'pack tag refs' 'git pack-refs'
check_describe A-* HEAD
 
test_expect_success 'describe works from outside repo using --git-dir' '
git clone --bare "$TRASH_DIRECTORY" "$TRASH_DIRECTORY/bare" &&
git --git-dir "$TRASH_DIRECTORY/bare" describe >out &&
grep "^A-[1-9][0-9]\?-g[0-9a-f]\+$" out
'
check_describe "A-*[0-9a-f]" --dirty
 
test_expect_success 'describe --dirty with --work-tree' '
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment