summaryrefslogtreecommitdiff
path: root/tests/fixtures/git_fetch_error.sh
blob: 49c568c6943a2ef3a4b72905bf203c659545f1a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

echo $*
case "$1" in
    fetch)
	if [ -f ./stamp1 ]; then
	    touch ./stamp2
	    exit 0
	fi
	touch ./stamp1
	exit 1
	;;
    version)
        echo "git version 1.0.0"
        exit 0
        ;;
esac