diff options
author | Joey Hess <joey@kitenet.net> | 2011-08-17 18:38:26 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-08-17 18:38:26 -0400 |
commit | b7a4ff1c3185404d36d34b372b016be052394a95 (patch) | |
tree | 28953385279993b63c28007dd0cfa5e3ea5e853a /Remote | |
parent | 228a724d1d1e1d2f27763bd5f71473acc4d022d9 (diff) |
optimise initialized check
Avoid running external command if annex.version is set.
Diffstat (limited to 'Remote')
-rw-r--r-- | Remote/Git.hs | 2 |
1 files changed, 1 insertions, 1 deletions
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 |