Close but no cigar.
Use "/foo" and it should be ok.
Basically, a path with a slash in it is considered absolute, but if the
slash is at the end it will only match a directory. A slash at the
*beginning* will match the root of the git repository, though.
Linus
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html