~ubuntu-branches/ubuntu/intrepid/git-core/intrepid-updates

« back to all changes in this revision

Viewing changes to t/t3210-pack-refs.sh

  • Committer: Package Import Robot
  • Author(s): Gerrit Pape
  • Date: 2007-04-22 13:31:05 UTC
  • mfrom: (1.1.14)
  • Revision ID: package-import@ubuntu.com-20070422133105-tkmhz328g2p0epz1
Tags: 1:1.5.1.2-1
* new upstream point release.
* debian/changelog.upstream: upstream changes taken from mailing list
  announcement.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
    'see if a branch still exists when packed' \
35
35
    'git-branch b &&
36
36
     git-pack-refs --all &&
37
 
     rm .git/refs/heads/b &&
 
37
     rm -f .git/refs/heads/b &&
38
38
     echo "$SHA1 refs/heads/b" >expect &&
39
39
     git-show-ref b >result &&
40
40
     diff expect result'
96
96
     git-branch -d n/o/p &&
97
97
     git-branch n'
98
98
 
 
99
test_expect_success 'pack, prune and repack' '
 
100
        git-tag foo &&
 
101
        git-pack-refs --all --prune &&
 
102
        git-show-ref >all-of-them &&
 
103
        git-pack-refs &&
 
104
        git-show-ref >again &&
 
105
        diff all-of-them again
 
106
'
 
107
 
99
108
test_done