1 2 3 4 5 6 7
#!/bin/sh TEMPDIR=$(mktemp -d) || exit 1 git clone --quiet --no-checkout $1 $TEMPDIR || exit 2 rm -rf $TEMPDIR