summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/Git.hs
diff options
context:
space:
mode:
authorJoey Hess2014-11-17 17:02:47 -0400
committerJoey Hess2014-11-17 17:02:47 -0400
commit2fab1a08b4f197874ad6c613f118315ab0d474a3 (patch)
tree025353fea85436242bb706cd75914d85c3fca98f /src/Propellor/Property/Git.hs
parent90f5cff061e11a06d3f37fdd5424b49678a2b07d (diff)
parentfbd8ea3b3d46b8cb56f3b9c82847cc849a37f89d (diff)
Merge branch 'joeyconfig'
Diffstat (limited to 'src/Propellor/Property/Git.hs')
-rw-r--r--src/Propellor/Property/Git.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Propellor/Property/Git.hs b/src/Propellor/Property/Git.hs
index e5df7e48..8d49cbd0 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"
]
+
+isGitDir :: FilePath -> IO Bool
+isGitDir dir = isNothing <$> catchMaybeIO (readProcess "git" ["rev-parse", "--resolve-git-dir", dir])