This commit is contained in:
Joey Hess 2018-10-01 11:59:05 -04:00
commit a7309549ad
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
3 changed files with 53 additions and 0 deletions

View file

@ -0,0 +1,7 @@
Ref: all heated discussions around https://github.com/datalad/datalad/issues/2844
The main point is -- `git annex init --version=6`, while running on a crippled system might need some time to accomplish the mission of unlocking a big number of files, which leads to `Checking out` progress update spit out by `git`. BUT if someone (us) swallows stderr, `git` does not produce any progress output unless that command (checkout, pull, fetch, etc...) provides explicit `--progress` flag. According to IRC there is no config setting to trigger that behavior in `git`. Could may be `git annex` get a config setting alike `force-git-progress` which would add `--progress` to any relevant `git` call whenever git is ran without stderr being swallowed by annex?
Thanks in advance for considering
[[!meta author=yoh]]

View file

@ -0,0 +1,7 @@
[[!comment format=mdwn
username="joey"
subject="""comment 1"""
date="2018-10-01T15:57:40Z"
content="""
Wouldn't git annex init --version=6 work? If not that is a bug.
"""]]

View file

@ -0,0 +1,39 @@
ATM git-annex init on a new clone would try to sense the remote regarding git-annex support and would try to fetch its /config. If that fails it would announce that remote ignored for annex.
[[!format sh """
...
Switched to branch 'adjusted/master(unlocked)'
download failed: Not Found
Remote origin not usable by git-annex; setting annex-ignore
"""]]
and that download failed, thanks to --debug output comes from
[[!format sh """
[2018-09-28 12:52:12.541757374] Request {
host = "github.com"
port = 443
secure = True
requestHeaders = [("Range","bytes=0-"),("Accept-Encoding","identity")]
path = "/psychoinformatics-de/studyforrest-data-structural/config"
queryString = ""
method = "GET"
proxy = Nothing
rawBody = False
redirectCount = 10
responseTimeout = ResponseTimeoutDefault
requestVersion = HTTP/1.1
}
download failed: Not Found
Remote origin not usable by git-annex; setting annex-ignore
"""]]
IMHO that "download failed: " message output should be provided only in `--debug` mode. Otherwise, if exposed to naive user it is an uninformative alarm, which (if he/she knows) is clarified by the follow up message ("Remote origin not usable ...")
[[!meta author=yoh]]
ref: [https://github.com/datalad/datalad/pull/2881#issue-218977359](https://github.com/datalad/datalad/pull/2881#issue-218977359)