#!/bin/bash set -e set -o pipefail rm -rf stunt mkdir stunt cd stunt git init git commit --allow-empty -m 'Test object' head=`git rev-parse HEAD` perl -ne 'chomp; print "create refs/tags/$_ '$head'\n" or die $!' \ | tee /dev/tty \ | git update-ref --stdin