#!/bin/sh
#
+# Copyright (c) 2008 Stephen Haberman
+#
# Auto-deploys the contents of the gitconfig branch to $GIT_DIR.
#
# The config file is handled specially--instead of the $GIT_DIR's config file
git cat-file blob "$file_hash" > "hooks/$file_name"
done
fi
+
+ git ls-tree $newrev | grep -v hooks | grep -v config | grep blob | while read mode type file_hash file_name ; do
+ echo "Installing $file_name"
+ git cat-file blob "$file_hash" > "$file_name"
+ done
fi
done
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