Sha256: db301490095ffdd3ab06ede986a9230b3da345c105b0a7a206b5922cabc9c170
Contents?: true
Size: 579 Bytes
Versions: 27
Compression:
Stored size: 579 Bytes
Contents
#!/bin/bash -e hst_proxy="${GATEWAY:=deploy}" # remote arguments git_url="$(git config --list | grep remote.origin.url | cut -d= -f2-)" git_ref=$(cat .git/HEAD) if echo "$git_ref" | egrep -q "^ref:"; then git_branch=$(echo "$git_ref" | awk '{print $2}' | cut -d/ -f3-) git_head=$(git show-ref --hash "$(echo "$git_ref" | awk '{print $2}')") else git_branch="" git_head=$git_ref fi if [[ -z $git_head ]]; then echo "ERROR: could not find the SHA for HEAD" 1>&2 exit 1 fi ssh -t $hst_proxy alpha_omega_proxy_helper2 "$USER" "$git_url" "$git_branch:$git_head" "$@"
Version data entries
27 entries across 27 versions & 1 rubygems