]> dgit.raspbian.org Git - git-annex.git/log
git-annex.git
9 years ago(no commit message)
ddenis [Sun, 18 Dec 2016 23:38:30 +0000 (23:38 +0000)]

9 years agodevbog
Joey Hess [Sun, 18 Dec 2016 21:44:37 +0000 (17:44 -0400)]
devbog

9 years agoshorten note
Joey Hess [Sun, 18 Dec 2016 21:31:02 +0000 (17:31 -0400)]
shorten note

9 years agoimprove note display
Joey Hess [Sun, 18 Dec 2016 21:23:20 +0000 (17:23 -0400)]
improve note display

9 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Sun, 18 Dec 2016 21:18:05 +0000 (17:18 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

9 years agotypo
Joey Hess [Sun, 18 Dec 2016 21:13:06 +0000 (17:13 -0400)]
typo

9 years agocheck if wormhole is installed
Joey Hess [Sun, 18 Dec 2016 21:01:15 +0000 (17:01 -0400)]
check if wormhole is installed

9 years agop2p --pair with magic wormhole (untested)
Joey Hess [Sun, 18 Dec 2016 20:50:58 +0000 (16:50 -0400)]
p2p --pair with magic wormhole (untested)

It builds. I have not tried to run it yet. :)

This commit was sponsored by Jake Vosloo on Patreon.

9 years agoAdded a comment: Coda
xloem [Sun, 18 Dec 2016 14:56:18 +0000 (14:56 +0000)]
Added a comment: Coda

9 years agomake sure False is returned on error
Joey Hess [Sat, 17 Dec 2016 22:31:19 +0000 (18:31 -0400)]
make sure False is returned on error

9 years agoimprove types
Joey Hess [Sat, 17 Dec 2016 22:25:33 +0000 (18:25 -0400)]
improve types

9 years agodocument a minor problem
Joey Hess [Sat, 17 Dec 2016 21:36:55 +0000 (17:36 -0400)]
document a minor problem

9 years agouse PYTHONUNBUFFERED to force python to use sane stdout buffering
Joey Hess [Sat, 17 Dec 2016 21:28:08 +0000 (17:28 -0400)]
use PYTHONUNBUFFERED to force python to use sane stdout buffering

Works around https://github.com/warner/magic-wormhole/issues/108

See http://stackoverflow.com/questions/107705/disable-output-buffering
for the gory details. Why a scripting language would chose a default
stdout buffering that differs between terminal and piped output, and
tends to introduce this kind of bug, I don't know.

9 years agomagic wormhole module
Joey Hess [Sat, 17 Dec 2016 20:58:05 +0000 (16:58 -0400)]
magic wormhole module

This interacts with it using stdio, which is surprisingly hard.

sendFile does not currently work, due to
https://github.com/warner/magic-wormhole/issues/108

Parsing the output to find the magic code is done as robustly as
possible, and should continue to work unless wormhole radically changes
the format of its codes. Presumably it will never output something that
looks like a wormhole code before the actual wormhole code; that would
also break this. It would be better if there was a way to make
wormhole not mix the code with other output, as requested in
https://github.com/warner/magic-wormhole/issues/104

Only exchange of files/directories is supported. To exchange messages,
https://github.com/warner/magic-wormhole/issues/99 would need to be resolved.
I don't need message exchange however.

9 years agoRevert "p2p --link now defaults to setting up a bi-directional link"
Joey Hess [Fri, 16 Dec 2016 22:26:07 +0000 (18:26 -0400)]
Revert "p2p --link now defaults to setting up a bi-directional link"

This reverts commit 3037feb1bf9ae9c857b45191309965859b23b0b6.

On second thought, this was an overcomplication of what should be the
lowest-level primitive. Let's build bi-directional links at the pairing
level with eg magic wormhole.

9 years agodevblog
Joey Hess [Fri, 16 Dec 2016 21:41:08 +0000 (17:41 -0400)]
devblog

9 years agop2p: Added --one-way option.
Joey Hess [Fri, 16 Dec 2016 20:43:37 +0000 (16:43 -0400)]
p2p: Added --one-way option.

This commit was sponsored by Fernando Jimenez on Patreon.

9 years agop2p --link now defaults to setting up a bi-directional link
Joey Hess [Fri, 16 Dec 2016 20:32:29 +0000 (16:32 -0400)]
p2p --link now defaults to setting up a bi-directional link

Both the local and remote git repositories get remotes added
pointing at one-another.

Makes pairing twice as easy!

Security: The new LINK command in the protocol can be sent repeatedly,
but only by a peer who has authenticated with us. So, it's entirely safe to
add a link back to that peer, or to some other peer it knows about.
Anything we receive over such a link, the peer could send us over the
current connection.

There is some risk of being flooded with LINKs, and adding too many
remotes. To guard against that, there's a hard cap on the number of remotes
that can be set up this way. This will only be a problem if setting up
large p2p networks that have exceptional interconnectedness.

A new, dedicated authtoken is created when sending LINK.

This also allows, in theory, using a p2p network like tor, to learn about
links on other networks, like telehash.

This commit was sponsored by Bruno BEAUFILS on Patreon.

9 years agop2p: --link no longer takes a remote name, instead the --name option can be used.
Joey Hess [Fri, 16 Dec 2016 19:36:59 +0000 (15:36 -0400)]
p2p: --link no longer takes a remote name, instead the --name option can be used.

9 years agoupdate links to wormhole issues
Joey Hess [Fri, 16 Dec 2016 19:03:20 +0000 (15:03 -0400)]
update links to wormhole issues

9 years agoAdded a comment
binx [Fri, 16 Dec 2016 13:57:41 +0000 (13:57 +0000)]
Added a comment

9 years agoAdded a comment: Nexus 6p
moc514@eb7af2cd9147722b29f32b6606feb2b8563dfac8 [Fri, 16 Dec 2016 02:08:21 +0000 (02:08 +0000)]
Added a comment: Nexus 6p

9 years agoLink adjustments
0xloem@0bd8a79a57e4f0dcade8fc81d162c37eae4d6730 [Thu, 15 Dec 2016 21:18:00 +0000 (21:18 +0000)]
Link adjustments

9 years agoAdd missing link
0xloem@0bd8a79a57e4f0dcade8fc81d162c37eae4d6730 [Thu, 15 Dec 2016 21:12:45 +0000 (21:12 +0000)]
Add missing link

9 years agoAdd some markup and links
0xloem@0bd8a79a57e4f0dcade8fc81d162c37eae4d6730 [Thu, 15 Dec 2016 21:09:52 +0000 (21:09 +0000)]
Add some markup and links

9 years agometadata --batch UTF-8 bug
alpernebbi [Wed, 14 Dec 2016 09:30:10 +0000 (09:30 +0000)]
metadata --batch UTF-8 bug

9 years agoAdded a comment: I took the liberty to do it
marekj [Wed, 14 Dec 2016 07:49:26 +0000 (07:49 +0000)]
Added a comment: I took the liberty to do it

9 years agoCreate wiki page for the different levels of control you can have with git annex
marekj [Wed, 14 Dec 2016 06:54:24 +0000 (06:54 +0000)]
Create wiki page for the different levels of control you can have with git annex

9 years agodevblog
Joey Hess [Tue, 13 Dec 2016 19:47:51 +0000 (15:47 -0400)]
devblog

9 years agoMake all --batch input, as well as fromkey and registerurl stdin be processed without...
Joey Hess [Tue, 13 Dec 2016 19:35:04 +0000 (15:35 -0400)]
Make all --batch input, as well as fromkey and registerurl stdin be processed without requiring it to be in the current encoding.

9 years agoupdates
Joey Hess [Tue, 13 Dec 2016 17:59:28 +0000 (13:59 -0400)]
updates

9 years agoresponse
Joey Hess [Tue, 13 Dec 2016 16:58:22 +0000 (12:58 -0400)]
response

9 years agoresponse
Joey Hess [Tue, 13 Dec 2016 16:54:28 +0000 (12:54 -0400)]
response

9 years agoresponse
Joey Hess [Tue, 13 Dec 2016 16:53:12 +0000 (12:53 -0400)]
response

9 years agoresponse
Joey Hess [Tue, 13 Dec 2016 16:48:11 +0000 (12:48 -0400)]
response

9 years agocomment
Joey Hess [Tue, 13 Dec 2016 16:43:20 +0000 (12:43 -0400)]
comment

9 years agoclose
Joey Hess [Tue, 13 Dec 2016 16:19:44 +0000 (12:19 -0400)]
close

9 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Tue, 13 Dec 2016 16:16:18 +0000 (12:16 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

9 years agoRevert ServerAliveInterval
Joey Hess [Tue, 13 Dec 2016 16:05:05 +0000 (12:05 -0400)]
Revert ServerAliveInterval

Revert ServerAliveInterval change in 6.20161111, which caused problems
with too many old versions of ssh and unusual ssh configurations.

It should have not been needed anyway since ssh is supposted to
have TCPKeepAlive enabled by default.

9 years agoclose
Joey Hess [Tue, 13 Dec 2016 16:00:37 +0000 (12:00 -0400)]
close

9 years agocomment
Joey Hess [Tue, 13 Dec 2016 15:58:56 +0000 (11:58 -0400)]
comment

9 years agocomment
Joey Hess [Tue, 13 Dec 2016 15:57:32 +0000 (11:57 -0400)]
comment

9 years agoPass annex.web-options to wget and curl after other options, so that eg --no-show...
Joey Hess [Tue, 13 Dec 2016 15:56:23 +0000 (11:56 -0400)]
Pass annex.web-options to wget and curl after other options, so that eg --no-show-progress can be set by the user to disable the default --show-progress.

9 years agoAdded a comment
0xloem@0bd8a79a57e4f0dcade8fc81d162c37eae4d6730 [Tue, 13 Dec 2016 15:52:35 +0000 (15:52 +0000)]
Added a comment

9 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Tue, 13 Dec 2016 15:13:58 +0000 (11:13 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

9 years agometadata --batch: Fix bug when conflicting metadata changes were made in the same...
Joey Hess [Tue, 13 Dec 2016 15:07:49 +0000 (11:07 -0400)]
metadata --batch: Fix bug when conflicting metadata changes were made in the same batch run.

1 microsecond delay is ugly.. but, maintaining an queue of a list of timestamps
and taking a new one from the queue each time around, or maintaining a timestamp
counter, would probably be slower.

9 years agoanalysis
Joey Hess [Tue, 13 Dec 2016 14:57:11 +0000 (10:57 -0400)]
analysis

9 years agoanalysis
Joey Hess [Tue, 13 Dec 2016 14:49:39 +0000 (10:49 -0400)]
analysis

9 years agoanalysis
Joey Hess [Tue, 13 Dec 2016 14:40:50 +0000 (10:40 -0400)]
analysis

9 years ago(no commit message)
https://singpolyma.net/ [Tue, 13 Dec 2016 02:38:44 +0000 (02:38 +0000)]

9 years agoAdded a comment
annexuser [Tue, 13 Dec 2016 02:00:08 +0000 (02:00 +0000)]
Added a comment

9 years agotodo
Joey Hess [Mon, 12 Dec 2016 21:21:32 +0000 (17:21 -0400)]
todo

9 years agocomment
Joey Hess [Mon, 12 Dec 2016 17:31:58 +0000 (13:31 -0400)]
comment

9 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Mon, 12 Dec 2016 17:28:50 +0000 (13:28 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

9 years agofinish fixing android build after tor merge
Joey Hess [Mon, 12 Dec 2016 17:27:39 +0000 (13:27 -0400)]
finish fixing android build after tor merge

9 years agoDebian: Build webapp on armel.
Joey Hess [Mon, 12 Dec 2016 01:30:07 +0000 (21:30 -0400)]
Debian: Build webapp on armel.

9 years agolinux standalone builds should have "unable to decommit memory" bug fixed
Joey Hess [Sun, 11 Dec 2016 19:37:52 +0000 (15:37 -0400)]
linux standalone builds should have "unable to decommit memory" bug fixed

9 years ago(no commit message)
grawity@2ea26be48562f66fcb9b66307da72b1e2e37453f [Sun, 11 Dec 2016 17:46:03 +0000 (17:46 +0000)]

9 years agoAdded a comment: Nope a Fluke
0xloem@0bd8a79a57e4f0dcade8fc81d162c37eae4d6730 [Sun, 11 Dec 2016 13:26:29 +0000 (13:26 +0000)]
Added a comment: Nope a Fluke

9 years agoAdded a comment: Verification
0xloem@0bd8a79a57e4f0dcade8fc81d162c37eae4d6730 [Sun, 11 Dec 2016 00:59:50 +0000 (00:59 +0000)]
Added a comment: Verification

9 years agoAdded a comment
0xloem@0bd8a79a57e4f0dcade8fc81d162c37eae4d6730 [Sun, 11 Dec 2016 00:26:42 +0000 (00:26 +0000)]
Added a comment

9 years agofix some more
Joey Hess [Sat, 10 Dec 2016 16:29:29 +0000 (12:29 -0400)]
fix some more

9 years agoadd news item for git-annex 6.20161210
Joey Hess [Sat, 10 Dec 2016 16:23:34 +0000 (12:23 -0400)]
add news item for git-annex 6.20161210

9 years agoreleasing package git-annex version 6.20161210
Joey Hess [Sat, 10 Dec 2016 16:23:18 +0000 (12:23 -0400)]
releasing package git-annex version 6.20161210

9 years agobetter fix
Joey Hess [Sat, 10 Dec 2016 16:13:41 +0000 (12:13 -0400)]
better fix

9 years agoimprove hask to work with TH for Free monads
Joey Hess [Sat, 10 Dec 2016 15:55:56 +0000 (11:55 -0400)]
improve hask to work with TH for Free monads

9 years agowarning about old kernels
Joey Hess [Sat, 10 Dec 2016 15:45:46 +0000 (11:45 -0400)]
warning about old kernels

9 years agofix build warning
Joey Hess [Sat, 10 Dec 2016 15:41:38 +0000 (11:41 -0400)]
fix build warning

9 years agofix build with old stm
Joey Hess [Sat, 10 Dec 2016 15:32:05 +0000 (11:32 -0400)]
fix build with old stm

Old stm lacks isFullTMQueue.

To avoid needing to update stm on the Android autobuilder, I switched to
a TBMQueue. It never needs to be closed, but the overhead is minimal.

9 years agofollowup
Joey Hess [Sat, 10 Dec 2016 15:31:55 +0000 (11:31 -0400)]
followup

9 years agofix build with old ghc
Joey Hess [Sat, 10 Dec 2016 15:12:18 +0000 (11:12 -0400)]
fix build with old ghc

9 years agofix typo
Joey Hess [Sat, 10 Dec 2016 15:04:11 +0000 (11:04 -0400)]
fix typo

9 years agofixed
Joey Hess [Sat, 10 Dec 2016 14:46:51 +0000 (10:46 -0400)]
fixed

9 years agoRemove http-conduit (<2.2.0) constraint
Alper Nebi Yasak [Sat, 10 Dec 2016 12:24:27 +0000 (15:24 +0300)]
Remove http-conduit (<2.2.0) constraint

Since https://github.com/aristidb/aws/issues/206 is resolved, this
constraint is no longer necessary. However, http-conduit (>=2.2.0)
requires http-client (>=0.5.0) which introduces some breaking changes.
This commit also implements those changes depending on the version.
Fixes: https://git-annex.branchable.com/bugs/Build_with_aws_head_fails/
Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
9 years agoAdded a comment: Patch to fix aws head build issue
alpernebbi [Sat, 10 Dec 2016 13:08:58 +0000 (13:08 +0000)]
Added a comment: Patch to fix aws head build issue

9 years agoAdded a comment: Corrupt Links Produced, Significant Data Loss
0xloem@0bd8a79a57e4f0dcade8fc81d162c37eae4d6730 [Sat, 10 Dec 2016 12:31:32 +0000 (12:31 +0000)]
Added a comment: Corrupt Links Produced, Significant Data Loss

9 years agoAdded a comment
alpernebbi [Sat, 10 Dec 2016 07:36:04 +0000 (07:36 +0000)]
Added a comment

9 years agohang up connection after relaying
Joey Hess [Fri, 9 Dec 2016 21:11:16 +0000 (17:11 -0400)]
hang up connection after relaying

Seems that git upload-pack outputs a "ONCDN " that is not read by the
remote git receive-pack. This fixes:

[2016-12-09 17:08:32.77159731] P2P > ERROR protocol parse error: "ONCDN "

9 years agoupdate
Joey Hess [Fri, 9 Dec 2016 21:07:32 +0000 (17:07 -0400)]
update

9 years agofix uuid comparison
Joey Hess [Fri, 9 Dec 2016 21:02:21 +0000 (17:02 -0400)]
fix uuid comparison

9 years agoavoid exposing auth tokens in debug
Joey Hess [Fri, 9 Dec 2016 20:55:48 +0000 (16:55 -0400)]
avoid exposing auth tokens in debug

9 years agodevblog
Joey Hess [Fri, 9 Dec 2016 20:46:37 +0000 (16:46 -0400)]
devblog

9 years agodebug dump P2P messages
Joey Hess [Fri, 9 Dec 2016 20:45:36 +0000 (16:45 -0400)]
debug dump P2P messages

9 years agomake tor hidden service work when directory watching is not available
Joey Hess [Fri, 9 Dec 2016 20:27:20 +0000 (16:27 -0400)]
make tor hidden service work when directory watching is not available

Avoid crashing when built w/o inotify..

9 years agocleanup
Joey Hess [Fri, 9 Dec 2016 20:22:00 +0000 (16:22 -0400)]
cleanup

9 years agobump maxConnections to 100
Joey Hess [Fri, 9 Dec 2016 20:03:25 +0000 (16:03 -0400)]
bump maxConnections to 100

10 seemed too low because more than 10 friends could be linked to a repo
over tor, and if all were running the remotedaemon, which makes a
persistent connection for change notification, then the 11th friend
would not be able to access that repo.

100 might be too low, but it's a much larger group of people. And at
that size group, it probably makes sense to structure the network so
that 100 peers are not all trying to access one central node.

9 years agoremotedaemon: git change detection over tor hidden service
Joey Hess [Fri, 9 Dec 2016 20:02:43 +0000 (16:02 -0400)]
remotedaemon: git change detection over tor hidden service

9 years agoonly start ref change watcher thread once per P2P connection
Joey Hess [Fri, 9 Dec 2016 19:08:54 +0000 (15:08 -0400)]
only start ref change watcher thread once per P2P connection

This is more efficient. Note that the peer will get CHANGED messages for
all refs changed since the connection opened, even if those changes
happened before it sent NOTIFYCHANGE.

9 years agorefactor ref change watching
Joey Hess [Fri, 9 Dec 2016 18:52:38 +0000 (14:52 -0400)]
refactor ref change watching

Added to change notification to P2P protocol.

Switched to a TBChan so that a single long-running thread can be
started, and serve perhaps intermittent requests for change
notifications, without buffering all changes in memory.

The P2P runner currently starts up a new thread each times it waits
for a change, but that should allow later reusing a thread. Although
each connection from a peer will still need a new watcher thread to run.

The dependency on stm-chans is more or less free; some stuff in yesod
uses it, so it was already indirectly pulled in when building with the
webapp.

This commit was sponsored by Francois Marier on Patreon.

9 years agoupdate
Joey Hess [Fri, 9 Dec 2016 17:38:50 +0000 (13:38 -0400)]
update

9 years agogit-annex-shell, remotedaemon, git remote: Fix some memory DOS attacks.
Joey Hess [Fri, 9 Dec 2016 17:34:00 +0000 (13:34 -0400)]
git-annex-shell, remotedaemon, git remote: Fix some memory DOS attacks.

The attacker could just send a very lot of data, with no \n and it would
all be buffered in memory until the kernel killed git-annex or perhaps OOM
killed some other more valuable process.

This is a low impact security hole, only affecting communication between
local git-annex and git-annex-shell on the remote system. (With either
able to be the attacker). Only those with the right ssh key can do it. And,
there are probably lots of ways to construct git repositories that make git
use a lot of memory in various ways, which would have similar impact as
this attack.

The fix in P2P/IO.hs would have been higher impact, if it had made it to a
released version, since it would have allowed DOSing the tor hidden
service without needing to authenticate.

(The LockContent and NotifyChanges instances may not be really
exploitable; since the line is read and ignored, it probably gets read
lazily and does not end up staying buffered in memory.)

9 years agodebug on error serving peer
Joey Hess [Fri, 9 Dec 2016 17:00:19 +0000 (13:00 -0400)]
debug on error serving peer

9 years agofix
Joey Hess [Fri, 9 Dec 2016 16:56:38 +0000 (12:56 -0400)]
fix

9 years agomake clear that log is only updated after successful removal
Joey Hess [Fri, 9 Dec 2016 16:54:18 +0000 (12:54 -0400)]
make clear that log is only updated after successful removal

This does not change behavior, because an exception is thrown on
unsuccessful removal. But is clearer.

9 years agotypo
Joey Hess [Fri, 9 Dec 2016 16:54:12 +0000 (12:54 -0400)]
typo

9 years agocontent removal is supposed to succed if the content was already not present
Joey Hess [Fri, 9 Dec 2016 16:47:57 +0000 (12:47 -0400)]
content removal is supposed to succed if the content was already not present

9 years agoimprove warning on connection loss
Joey Hess [Fri, 9 Dec 2016 16:35:45 +0000 (12:35 -0400)]
improve warning on connection loss

9 years agotodo
Joey Hess [Fri, 9 Dec 2016 00:55:46 +0000 (20:55 -0400)]
todo

9 years agomore todo
Joey Hess [Fri, 9 Dec 2016 00:15:12 +0000 (20:15 -0400)]
more todo

9 years agoupdate progress logs in remotedaemon send/receive
Joey Hess [Thu, 8 Dec 2016 23:56:02 +0000 (19:56 -0400)]
update progress logs in remotedaemon send/receive