diff --git a/git-ftp b/git-ftp index bc01b670..3a3dddc0 100755 --- a/git-ftp +++ b/git-ftp @@ -556,7 +556,7 @@ set_changed_files() { # Filter against ignore file if [ -f '.git-ftp-ignore' ]; then - grep -v '^#.*$\|^\s*$' '.git-ftp-ignore' | tr -d '\r' > '.git-ftp-ignore-tmp' + grep -v '^#.*$\|^\s*$' '.git-ftp-ignore' | tr -d '\r' | sed -e 's|^\([^/].*\)|^..\\(.*/\\)\\?\1$|; s|^/|^..|' > '.git-ftp-ignore-tmp' FILES_CHANGED=$(grep --invert-match -f '.git-ftp-ignore-tmp' '.git-ftp-tmp' | tr '\t' ' ') else FILES_CHANGED=$(cat '.git-ftp-tmp' | tr '\t' ' ')