diff --git a/libexec/rbenv-version-file b/libexec/rbenv-version-file index 7a2b9c6e..5e38c695 100755 --- a/libexec/rbenv-version-file +++ b/libexec/rbenv-version-file @@ -6,6 +6,7 @@ set -e find_local_version_file() { local root="$1" while true; do + [[ "$root" =~ ^//[^/]*$ ]] && break if [ -e "${root}/.ruby-version" ]; then echo "${root}/.ruby-version" exit