From b7a4ff1c3185404d36d34b372b016be052394a95 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 17 Aug 2011 18:38:26 -0400 Subject: optimise initialized check Avoid running external command if annex.version is set. --- Remote/Git.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Remote/Git.hs') diff --git a/Remote/Git.hs b/Remote/Git.hs index c588cc73b..d8ecd33c4 100644 --- a/Remote/Git.hs +++ b/Remote/Git.hs @@ -81,7 +81,7 @@ tryGitConfigRead r | Git.repoIsHttp r = store $ safely $ geturlconfig | Git.repoIsUrl r = return r | otherwise = store $ safely $ do - onLocal r initializeSafe + onLocal r ensureInitialized Git.configRead r where -- Reading config can fail due to IO error or -- cgit v1.2.3