]> git.droids-corp.org - git-central.git/blobdiff - tests/t3100-update-allow-tags-branches.sh
Get tests passing again.
[git-central.git] / tests / t3100-update-allow-tags-branches.sh
index ecac232af478e30a2a1d2f34be51d96c4bdfadeb..4cff0ff0ee288d0b2b3b3e70642fc1bc765493da 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 
 test_description='server update allow tags and branches'
 
@@ -8,9 +8,9 @@ test_expect_success 'setup' '
        echo "setup" >a &&
        git add a &&
        git commit -m "setup" &&
-       git clone ./. server &&
-       rm -fr server/.git/hooks &&
-       git remote add origin ./server
+       git clone -l . --bare server.git &&
+       rm -fr server.git/hooks &&
+       git remote add origin ./server.git
 '
 
 install_update_hook 'update-allow-tags-branches'
@@ -35,7 +35,7 @@ test_expect_success 'push works if done at the same time' '
 '
 
 test_expect_success 'moving branch back and deleting tag works' '
-       GIT_DIR=./server/.git git config hooks.update-allow-tags-branches.deletetag true
+       GIT_DIR=./server.git git config hooks.update-allow-tags-branches.deletetag true
        git reset --hard HEAD^ &&
        git push --force origin master:master :r2
 '