When a http remote does not expose an annex.uuid config, only warn about it once, not every time git-annex is run.

Same behavior as for a ssh remote.
This commit is contained in:
Joey Hess 2017-03-29 12:43:47 -04:00
parent 3795278338
commit 3c8eb59860
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
3 changed files with 8 additions and 8 deletions

View file

@ -248,18 +248,15 @@ tryGitConfigRead autoinit r
, return Nothing
)
case v of
Nothing -> do
warning $ "Failed to get annex.uuid configuration of repository " ++ Git.repoDescribe r
return r
Just (Left _) -> do
set_ignore "not usable by git-annex" False
return r
Just (Right r') -> do
-- Cache when http remote is not bare for
-- optimisation.
unless (Git.Config.isBare r') $
setremote setRemoteBare False
return r'
_ -> do
set_ignore "not usable by git-annex" False
return r
store = observe $ \r' -> do
g <- gitRepo