Better diagnostic for wrong branch configuration.
[stgit/ydirson.git] / t / t1004-pack-ref.sh
blob5339a5d25524c452d1f2af26f2ce1c8d041201b0
1 #!/bin/sh
3 # Copyright (c) 2007 Karl Hasselström
6 test_description='Test that StGIT can handle packed refs'
8 . ./test-lib.sh
9 stg init
11 test_expect_success \
12 'Pack refs and make sure that we can still see them' '
13 stg branch -c foo &&
14 [ $(stg branch -l | tee /dev/stderr | wc -l) -eq 2 ] &&
15 git pack-refs --all &&
16 [ $(stg branch -l | tee /dev/stderr | wc -l) -eq 2 ]
19 test_expect_success \
20 'Try to delete a branch whose ref has been packed' '
21 stg branch -d master
24 test_done