chiark / gitweb /
1524fde1287302f0aa4be275505196432f55f2ed
[version-charset-test.git] / check
1 #!/bin/bash
2 set -e
3 set -o pipefail
4 rm -rf stunt
5 mkdir stunt
6 cd stunt
7 git init
8 git commit --allow-empty -m 'Test object'
9 head=`git rev-parse HEAD`
10 perl -ne 'chomp; print "create refs/tags/$_ '$head'\n" or die $!' \
11 | tee /dev/tty \
12 | git update-ref --stdin