chiark / gitweb /
Clean up Series.refresh_patch
[stgit] / t / t1004-pack-ref.sh
1 #!/bin/sh
2 #
3 # Copyright (c) 2007 Karl Hasselström
4 #
5
6 test_description='Test that StGIT can handle packed refs'
7
8 . ./test-lib.sh
9 stg init
10
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 ]
17 '
18
19 test_expect_success \
20     'Try to delete a branch whose ref has been packed' '
21     stg branch -d master
22 '
23
24 test_done