Actually git v.1.7.0 does seem to have problems with foldernames.
Using this .git/info/sparse-checkout actually did work correctly
include/
htdocs/*
!htdocs/downloads/
!htdocs/images/
!htdocs/videos/
So the trailing slash wasn't needed on my Mac with a newer Git version but on the Linux server with an older Git.