diff --git a/git-remote-k8s.sh b/git-remote-k8s.sh index e774f09..3440f60 100755 --- a/git-remote-k8s.sh +++ b/git-remote-k8s.sh @@ -18,6 +18,11 @@ # along with this program. If not, see . set -e +if [ x = x"$GIT_DIR" ];then + 1>&2 echo "Please see $(dirname "$0")/README.md for instructions" + exit 1 +fi + export IMAGE=alpine/git:latest export CONTEXT="$(echo "${2#*://}" | cut -d / -f 1)"