resmo/git-ftp — pull request #138 by mungo (2012-06-18 15:31:18+00:00)
Title: Using exit code of "git config" to check if a variable is defined

Testing for an empty string in get_config is problematic. For example:

[git-ftp]
user = myusername
url = example.com
password = mypassword
syncroot = path/to/dir

[git-ftp "test"]
url = test.com/www
syncroot =

get_config returns "path/to/dir/ for scope "test" but syncroot is defined as empty