resmo/git-ftp — Issue #110: basename: too many arguments on windows-computer
Author: Sleepcap
Created: 2012-01-01 07:55:44+00:00
State: open

If I try to use git-ftp on MinGW install in Win7 (the default and easiest way if you want to use git on a windows-computer) there is a problem with creating the .lck-files, because of all the " " in a typical windows-filepath.
If you escape the $0:

readonly BASE=`basename "$0"`
readonly LCK_FILE=".git/${BASE}.lck"
readonly REMOTE_LCK_FILE='${BASE}.lck'

it works.