File: t1004-pack-ref.sh

package info (click to toggle)
stgit 0.19-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,748 kB
  • sloc: python: 10,558; sh: 5,739; lisp: 2,678; makefile: 142; perl: 42
file content (24 lines) | stat: -rwxr-xr-x 508 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
#
# Copyright (c) 2007 Karl Hasselstrm
#

test_description='Test that StGIT can handle packed refs'

. ./test-lib.sh
stg init

test_expect_success \
    'Pack refs and make sure that we can still see them' '
    stg branch -c foo &&
    [ $(stg branch -l | tee /dev/stderr | wc -l) -eq 2 ] &&
    git pack-refs --all &&
    [ $(stg branch -l | tee /dev/stderr | wc -l) -eq 2 ]
'

test_expect_success \
    'Try to delete a branch whose ref has been packed' '
    stg branch -d master
'

test_done