This commit is contained in:
Joey Hess 2013-05-14 15:44:49 -04:00
parent 7b92ffc3a1
commit 306a36260f

View file

@ -71,7 +71,7 @@ fromAbsPath dir
{- When dir == "foo/.git", git looks for "foo/.git/.git",
- and failing that, uses "foo" as the repository. -}
hunt
| pathSeparator:".git" `isSuffixOf` canondir =
| (pathSeparator:".git") `isSuffixOf` canondir =
ifM (doesDirectoryExist $ dir </> ".git")
( ret dir
, ret $ takeDirectory canondir