Skip to content

Commit

Permalink
Don't exit znap pull if we're ahead of remote
Browse files Browse the repository at this point in the history
  • Loading branch information
marlonrichert committed May 5, 2022
1 parent f4778fd commit 9537e12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/.znap.pull
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ autoload +X -Uz is-at-least

private -a count=()
if count=( ${="$( git rev-list --count --left-right @{u}...@ 2> /dev/null )"} ) &&
(( count[1] && ! count[2] )); then
(( count[1] )); then

cd -q ~znap
print -nr -- $'\r'"${$( eval "ls -d $1:t" )%[/@]} "
Expand Down

0 comments on commit 9537e12

Please sign in to comment.