trying to get it to work with branches
This commit is contained in:
parent
c727b3bef0
commit
1c856e195c
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user