Fix problems in t1000-branch-create
authorKarl Hasselström <kha@treskal.com>
Sun, 13 Apr 2008 13:38:47 +0000 (15:38 +0200)
committerKarl Hasselström <kha@treskal.com>
Sun, 13 Apr 2008 13:27:44 +0000 (15:27 +0200)
commitc9804555c2eccd3d09b9ae5d18d4e44f5b7475fa
tree9ca95e9b7d0b4cd667542d19f41915bcc250ff94
parentbd3f01319a03fc883d391f24639176f0f65727e5
Fix problems in t1000-branch-create

There were a number of problems with t1000-branch-create:

  * It assumed that refs were not packed. I added calls to show-ref to
    spot any packed refs.

  * It reused the same name for several consecutive branch creation
    tests. This causes a domino effect if one of the subtests fail. I
    made the subtests use different names.

  * It tried to make sure that we couldn't create a branch if there
    was a broken ref by the same name. Unfortunately that test fails
    -- we don't create the branch, but we point HEAD to it. This
    causes many subsequent operations to fail. I marked this test as a
    known failure, and added some reset code so that subsequent
    subtests don't die because of this.

Signed-off-by: Karl Hasselström <kha@treskal.com>
t/t1000-branch-create.sh