diff --git a/src/Propellor/Property/Git.hs b/src/Propellor/Property/Git.hs index e5df7e4..eb82159 100644 --- a/src/Propellor/Property/Git.hs +++ b/src/Propellor/Property/Git.hs @@ -91,3 +91,6 @@ cloned owner url dir mbranch = check originurl (property desc checkout) -- installed here. , Just "git update-server-info" ] + +isRepo :: FilePath -> IO Bool +isRepo dir = isNothing <$> catchMaybeIO (readProcess "git" ["rev-parse", "--resolve-git-dir", dir])