Skip to content

Commit

Permalink
fix upsearch
Browse files Browse the repository at this point in the history
  • Loading branch information
zachliu committed Sep 24, 2022
1 parent f0f41ec commit 0fc069c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/utils.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,14 @@ spaceship::upsearch() {
echo "$filepath"
fi
return 0
elif [[ -d "$root/.git" || -d "$root/.hg" ]]; then
# If we reached the root of repo, return non-zero
return 1
fi
done

if [[ -d "$root/.git" || -d "$root/.hg" ]]; then
# If we reached the root of repo, return non-zero
return 1
fi

# Go one level up
root="${root%/*}"
done
Expand Down

0 comments on commit 0fc069c

Please sign in to comment.