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:
parent
3795278338
commit
3c8eb59860
3 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue