mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-27 03:14:56 +01:00
[Hotfix] Search for .git rather than .venv inside loop.
This commit is contained in:
parent
599831b85a
commit
18bf412bf0
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ if [[ ! $DISABLE_VENV_CD -eq 1 ]]; then
|
||||||
WORKON_CWD=1
|
WORKON_CWD=1
|
||||||
# Check if this is a Git repo
|
# Check if this is a Git repo
|
||||||
PROJECT_ROOT=`pwd`
|
PROJECT_ROOT=`pwd`
|
||||||
while [[ "$PROJECT_ROOT" != "/" && ! -e "$PROJECT_ROOT/.venv" ]]; do
|
while [[ "$PROJECT_ROOT" != "/" && ! -e "$PROJECT_ROOT/.git" ]]; do
|
||||||
PROJECT_ROOT=`realpath $PROJECT_ROOT/..`
|
PROJECT_ROOT=`realpath $PROJECT_ROOT/..`
|
||||||
done
|
done
|
||||||
if [[ "$PROJECT_ROOT" == "/" ]]; then
|
if [[ "$PROJECT_ROOT" == "/" ]]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue