aizatto/git-deploy — Issue #14: put: CWD /localhost should not be invoked
Author: tmysik
Created: 2012-02-03 12:19:19+00:00
State: open

First - I have tested everything via lftp, no error, everything works.

Steps:

* My config file ```deploy-localhost.yml``` (just for testing purposes) looks like:

```yaml
'localhost':
debug_mode: true
skip: false
scheme: ftp
user: anonymous
password: test@test.org
host: localhost
port: 21
path: /pub/nette-skeleton
passive: true
```

* After running ```git-deploy deploy-localhost```, I get:

```
localhost
Connecting to localhost
connect: localhost, 21
get: 220 Welcome to cattie only FTP service.
put: USER anonymous
get: 331 Please specify the password.
put: PASS *************
get: 230 Login successful.
put: CWD /localhost
get: 550 Failed to change directory.
```

I guess ```put: CWD /localhost``` is the culprit of the failure - is it a bug or have I anything incorrect in my config file?

Thanks.
PS: BTW if one makes a typo in ```scheme```, exception is thrown instead of some user-friendly error.