fix infinite loop

Local repos with the same path are not different. :)
This commit is contained in:
Joey Hess 2011-02-03 23:23:36 -04:00
parent dff47d51e6
commit 67c1facad1

View file

@ -144,6 +144,7 @@ same :: Git.Repo -> Git.Repo -> Bool
same a b
| both Git.repoIsSsh = matching Git.urlHostFull && matching Git.workTree
| both Git.repoIsUrl && neither Git.repoIsSsh = matching show
| neither Git.repoIsSsh = matching Git.workTree
| otherwise = False
where