96265d26454868b8b654e4a5271939748e1dd148
Author Jeff Wallace <jwallace@partnerpedia.com> Committer Jeff Wallace <jwallace@partnerpedia.com> Date 2012-01-17 18:00 UTC
Message fix bundler plugin for root level folders
this fix allows _within-bundled-project() to properly pickup a Gemfile
within a root level folder (ie. /my_project)
Diff 1 diff --git a/plugins/bundler/bundler.plugin.zsh b/plugins/bundler/bundler.plugin.zsh
2 index 033f9cedf5cf682eb44d5d447d1e6a1a40d6bc97..b8f8ed3da18af98eed3f1055d9b0e3a7399efcb3 100644
3 --- a/plugins/bundler/bundler.plugin.zsh
4 +++ b/plugins/bundler/bundler.plugin.zsh
5 @@ -20,7 +20,7 @@ _bundler-installed() {
6
7 _within-bundled-project() {
8 local check_dir=$PWD
9 - while [ "$(dirname $check_dir)" != "/" ]; do
10 + while [ $check_dir != "/" ]; do
11 [ -f "$check_dir/Gemfile" ] && return
12 check_dir="$(dirname $check_dir)"
13 done