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

@ -1,8 +1,9 @@
git-annex (6.20170322) UNRELEASED; urgency=medium
* stack.yaml: Update to lts-8.6.
* When a http remote does not expose an annex.uuid config, only warn
about it once, not every time git-annex is run.
-- Joey Hess <id@joeyh.name> Mon, 27 Mar 2017 19:48:31 -0400
-- Joey Hess <id@joeyh.name> Wed, 29 Mar 2017 12:41:46 -0400
git-annex (6.20170321) unstable; urgency=medium

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

View file

@ -1,3 +1,5 @@
When cloning eg <https://github.com/datalad/ds000114>, each time git-annex
is run, it tries to get the uuid, fails, prints a warning. It should set
annex-ignore instead, so that only happens once. --[[Joey]]
> [[fixed|done]] --[[Joey]]