grosser/vendorer — pull request #13 by mbrictson (2012-08-25 05:00:12+00:00)
Title: Fix exception in some cases when `from` nested within `folder`

Consider a one-argument call to `folder` or `file` used within a `from` block, which itself is nested within a `folder`, like so:

```
folder 'vendor/assets/javascripts' do
from 'https://github.com/harvesthq/chosen.git' do
folder 'chosen'
end
end
```

In this case `folder 'chosen'` is a shortcut for `folder 'chosen', 'chosen'`.

However, due a bug, this was incorrectly being interpreted as:

```
folder 'vendor/assets/javascripts/chosen', 'chosen'
```

As a result, an exception would be thrown:

```
'vendor/assets/javascripts/chosen' not found in https://github.com/harvesthq/chosen.git (RuntimeError)
```

This commit fixes this bug by preventing the folder block from affecting the source path. It still affects the target path, as intended.