summaryrefslogtreecommitdiff
path: root/Git/Construct.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Git/Construct.hs')
-rw-r--r--Git/Construct.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Git/Construct.hs b/Git/Construct.hs
index f9f4b464a..7500617a0 100644
--- a/Git/Construct.hs
+++ b/Git/Construct.hs
@@ -18,6 +18,7 @@ module Git.Construct (
fromRemoteLocation,
repoAbsPath,
newFrom,
+ checkForRepo,
) where
import System.Posix.User
@@ -211,6 +212,8 @@ expandTilde = expandt True
| c == '/' = (n, cs)
| otherwise = findname (n++[c]) cs
+{- Checks if a git repository exists in a directory. Does not find
+ - git repositories in parent directories. -}
checkForRepo :: FilePath -> IO (Maybe RepoLocation)
checkForRepo dir =
check isRepo $