diff options
author | Joey Hess <joeyh@joeyh.name> | 2017-03-29 12:43:47 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2017-03-29 12:43:47 -0400 |
commit | 17f62aeadafec7944bdbb7803a869f9b971c6204 (patch) | |
tree | 094309badf52c347734c083dd16f990fc33b43b0 /Remote | |
parent | ac139ec68950deaf15732ea9353ef0396e0d440c (diff) |
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.
Diffstat (limited to 'Remote')
-rw-r--r-- | Remote/Git.hs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Remote/Git.hs b/Remote/Git.hs index e5d85d2c2..78213f4f7 100644 --- a/Remote/Git.hs +++ b/Remote/Git.hs @@ -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 |