]> git.droids-corp.org - git-central.git/blobdiff - tests/t2800-post-receive-gitconfig.sh
Auto-deploy files other than config and hooks.
[git-central.git] / tests / t2800-post-receive-gitconfig.sh
index 75eae1f2f793c00eb5de39e924f229770ff03f61..6933fc840106d56c95b350035d14a8b3b49f8390 100644 (file)
@@ -34,5 +34,17 @@ test_expect_success 'pushing initial value works' '
        cd ..
 '
 
+test_expect_success 'pushing locked works' '
+       ! test -f server/.git/locked &&
+
+       git checkout gitconfig &&
+       echo "foo" > locked &&
+       git add locked &&
+       git commit -m "Add locked"
+       git push origin gitconfig
+
+       test -f server/.git/locked
+'
+
 test_done