Commit graph

27021 commits

Author SHA1 Message Date
Joey Hess
5c3636037b
Display a warning when concurrency is enabled but ssh connection caching is not enabled or won't work due to a crippled filesystem
A warning message is unsatisfying. But erroring out is too hard a failure,
especially since it may well work fine if the user has enabled passwordless
ssh.

I did think about falling back to one ssh connection at a time in this
case, but it would have needed a rework of every ssh call, which
seems far overboard for such a niche problem. There's no single place where
git-annex runs ssh, so no one place that it could block a concurrent call
on a semaphore. And, even if it did fall back to one ssh connection at a
time, it seems to me that doing so without warning the user about the
problem just invites bug reports like "git-annex is ignoring my -J2 and
only doing one download at a time". So a warning is needed, and I suppose
is good enough.
2020-01-23 12:35:46 -04:00
Joey Hess
81b06588a1
close as fixed in DAV library 2020-01-23 11:46:57 -04:00
Joey Hess
1883f7ef8f
support git remotes that need http basic auth
using git credential to get the password

One thing this doesn't do is wrap the password prompting inside the prompt
action. So with -J, the output can be a bit garbled.
2020-01-22 16:16:19 -04:00
Joey Hess
45250c3273
closed the wrong bug 2020-01-22 15:51:35 -04:00
Joey Hess
75059c9f3b
better error message when git config fails to parse remote config
Rather than leaking the name of the temp file, just say the config parse
failed, and where the config was downloaded from.

Not closing the bug report because two issues were reported in the same
bug report, because the universe wants me to continually re-read old
unclosed bug reports to waste my time determining what still needs to be
done.
2020-01-22 13:35:54 -04:00
Joey Hess
6cc1f1dce9
Merge branch 'master' of ssh://git-annex.branchable.com 2020-01-22 12:40:20 -04:00
Joey Hess
6a43bcf6c5
comment 2020-01-22 12:39:55 -04:00
Joey Hess
d227093002
avoid ugly error message
Http remotes that do expose a git config file, but are not initialized
resulted in an ugly and unncessary error message, now sqelched.

When git-annex-shell configlist is run w/o the autoinit field, it may
not generate a uuid for the repository. So in that case, it's not
unexpected for the config it does list to not include a UUID, and
dumping out the config in a warning message is not needed.

If configlist is asked to autoinit and we don't get back a config with a
UUID in it, that suggests some problem, and what we got back may not be
a config at all but some diagnostic message, so it does make sense to
output it then.
2020-01-22 11:57:20 -04:00
eschwartz@5abb721e66990e478c7d1caf96beb4f9794eb168
0a9be3da30 New bug for fish-completion 2020-01-22 05:33:08 +00:00
dxld
03255dcae4 Added a comment 2020-01-21 19:28:34 +00:00
Joey Hess
8cda10777a
comment 2020-01-21 14:36:29 -04:00
dxld
cdbe776d0f 2020-01-21 11:53:26 +00:00
Joey Hess
5c6bf1be97
--whatelse is a better name than --describe-other-params
The use case is basically the user having forgotten, so --help would be
best, but it would be quite hard to include this in --help, since it may
even have to spin up an external special remote program.

I also considered --umm but typoed it the first time I tried it as
--uum, and while memorable, it's too cutesy. --whatelse is good because
it explicitly asks, what other params, besides the ones I've given?
2020-01-20 17:04:45 -04:00
Joey Hess
55f596e9b4
Merge branch 'master' of ssh://git-annex.branchable.com 2020-01-20 16:59:57 -04:00
Joey Hess
2be4122bfc
include passthrough params in --describe-other-params 2020-01-20 16:53:27 -04:00
Joey Hess
aa949bbb7d
initremote --describe-other-params
Does not yet include descriptions from external special remote programs.
2020-01-20 16:05:51 -04:00
Joey Hess
2f8822307f
Merge branch 'remoteconfig' 2020-01-20 15:21:05 -04:00
bastibe
15bc8741c2 2020-01-20 14:57:04 +00:00
timothe
b4c135619d 2020-01-17 22:47:50 +00:00
Joey Hess
0b6fb506eb
Merge branch 'master' of ssh://git-annex.branchable.com 2020-01-17 17:30:09 -04:00
Joey Hess
b1c224dd48
done 2020-01-17 17:18:44 -04:00
Joey Hess
99cb3e75f1
add LISTCONFIGS to external special remote protocol
Special remote programs that use GETCONFIG/SETCONFIG are recommended
to implement it.

The description is not yet used, but will be useful later when adding a way
to make initremote list all accepted configs.

configParser now takes a RemoteConfig parameter. Normally, that's not
needed, because configParser returns a parter, it does not parse it
itself. But, it's needed to look at externaltype and work out what
external remote program to run for LISTCONFIGS.

Note that, while externalUUID is changed to a Maybe UUID, checkExportSupported
used to use NoUUID. The code that now checks for Nothing used to behave
in some undefined way if the external program made requests that
triggered it.

Also, note that in externalSetup, once it generates external,
it parses the RemoteConfig strictly. That generates a
ParsedRemoteConfig, which is thrown away. The reason it's ok to throw
that away, is that, if the strict parse succeeded, the result must be
the same as the earlier, lenient parse.

initremote of an external special remote now runs the program three
times. First for LISTCONFIGS, then EXPORTSUPPORTED, and again
LISTCONFIGS+INITREMOTE. It would not be hard to eliminate at least
one of those, and it should be possible to only run the program once.
2020-01-17 16:07:17 -04:00
yarikoptic
c1e2389e8e moving under datalad project, since I do not see explicit repronim-specific use case addressed 2020-01-17 17:32:08 +00:00
hans
6eea31acb8 Added a comment 2020-01-16 14:22:07 +00:00
Joey Hess
8017f41476
Merge branch 'master' of ssh://git-annex.branchable.com 2020-01-15 14:16:27 -04:00
Joey Hess
96d434af06
devblog 2020-01-15 14:14:46 -04:00
Joey Hess
987076690c
started on --list-params-for 2020-01-15 14:09:30 -04:00
Joey Hess
ba518c625c
comment 2020-01-15 14:08:58 -04:00
Ilya_Shlyakhter
f4b5128b69 removed 2020-01-15 17:28:43 +00:00
peterjhons1212@37e49dc920410e3ff2592014a4d480a71e6d8e60
9c22d4fcb4 2020-01-15 09:35:24 +00:00
Ilya_Shlyakhter
49ad9b06d2 removed 2020-01-14 17:01:33 +00:00
Ilya_Shlyakhter
ddd9eb1157 removed 2020-01-14 16:58:20 +00:00
Ilya_Shlyakhter
33236be1d7 removed 2020-01-14 16:56:23 +00:00
asgardroper9999@1aaf36a247c0e6dcf6a46d246f232024c1fa13fc
25d0c3632d 2020-01-14 11:04:01 +00:00
drakeorba@50df1b43541b82299ffda86e45d9d92b4d6dff51
861872cb12 2020-01-14 10:39:24 +00:00
macchristmas001@3f3c07e6de414d3d408af6907ac2fd329d697460
56b7af71d1 2020-01-14 09:35:01 +00:00
kyle
76aa98ce83 Added a comment: re: what am I doing wrong? 2020-01-14 03:19:22 +00:00
yarikoptic
0fa983803f Added a comment: what am I doing wrong? 2020-01-13 20:05:40 +00:00
yarikoptic
803722bb2d Added a comment: preferred way to automate population of the cache upon get 2020-01-13 19:01:11 +00:00
Joey Hess
31a03aa6af
Revert spam
This reverts commit c4a33d15b5.
2020-01-13 13:22:43 -04:00
Joey Hess
2ae241cddb
Revert spam
This reverts commit a1261c5f36.
2020-01-13 13:22:31 -04:00
Joey Hess
9cd8922fe5
Revert spam
This reverts commit 1c5edbd823.
2020-01-13 13:22:02 -04:00
Joey Hess
ee393c49e4
Revert spam
This reverts commit a746c210cc.
2020-01-13 13:21:41 -04:00
Joey Hess
37c9958ee8
Revert spam
This reverts commit fa7c78c31d.
2020-01-13 13:21:24 -04:00
Joey Hess
5c31e5ac72
Merge branch 'master' of ssh://git-annex.branchable.com 2020-01-13 13:17:17 -04:00
Joey Hess
4a01cd74b0
devblog 2020-01-13 13:16:48 -04:00
peterjhons1212@37e49dc920410e3ff2592014a4d480a71e6d8e60
fa7c78c31d 2020-01-13 12:14:38 +00:00
sr0665047@eb63f1dba8c3fd8df62fe41387eb4deeb0f8dd89
a746c210cc 2020-01-13 09:26:09 +00:00
diana.roger100@4fe4714d78b74795de56915fc7fb924f444963fa
1c5edbd823 2020-01-13 06:39:11 +00:00
diana.roger100@4fe4714d78b74795de56915fc7fb924f444963fa
a1261c5f36 2020-01-13 06:29:14 +00:00