yesodweb/cabal-meta — pull request #10 by cordawyn (2012-08-10 20:43:57+00:00)
Title: Using "basename" in place of "filename" to trim .git suffix in git repository names

"git clone git://example.com/repository.git" actually creates a local "repository" folder, but cabal-meta is checking "repository.git" for changes (when deciding between cloning or fetching stuff).
*Maybe* stripping specifically ".git" suffixes would be a better solution, since basename just strips anything that follows a dot, but I think that with URIs we should follow the convention that .git (.html and others) are format specifiers and are not parts of a file (resource) name.