the -X option does not seem to work

Project:lftp (project)
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Project wiki:lftp
Description

neither:
-X \.git
nor
-X \.git*
nor
-X .git
works.

man page:
-X GP, --exclude-glob GP exclude matching files
GP is a glob pattern, e.g. `*.zip'.
I wanted to be clever and use a GP to exclude .git and .gitignore, but
apparently only -x .git works.