trying to get it to work with branches

This commit is contained in:
Jonas Forsberg 2020-08-11 08:20:07 +02:00
parent c727b3bef0
commit 1c856e195c

View File

@ -16,7 +16,7 @@ case $1 in
check_push) check_push)
result="$(/usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME status --short 2> /dev/null)" result="$(/usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME status --short 2> /dev/null)"
if [[ -z "$result" ]]; then if [[ -z "$result" ]]; then
result="$(/usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME cherry -v origin/master)" result="$(/usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME cherry -v )"
if [[ ! -z "$result" ]]; then if [[ ! -z "$result" ]]; then
echo YES echo YES
fi fi