1 2 3 4 5 6 7 8 9 10 11 12
#!/bin/sh gitdir="$(pwd)" gitdir="$(readlink -f '$gitdir') description="$1" if [ ! -d $gitdir/.git ]; then echo Not a git repo. exit 1; fi