Merge branch 'master' of ssh://git-annex.branchable.com

This commit is contained in:
Joey Hess 2013-05-12 17:42:02 -04:00
commit 35b0875872
6 changed files with 83 additions and 1 deletions

View file

@ -0,0 +1,10 @@
[[!comment format=mdwn
username="https://openid.fmarier.org/"
nickname="fmarier"
subject="Make sure your network is correctly set up in the first place!"
date="2013-05-12T08:37:38Z"
content="""
It turns out that my internal network had badly broken IPv6 configs between the boxes. That was interfering with the multicast packets but not with anything else since all of my other internal traffic is over IPv4.
Getting rid of these static IPv6 addresses has solved my problem. Local pairing is now working as advertised :)
"""]]

View file

@ -0,0 +1,34 @@
I have some git repositories I don't edit often that I'd like to back up. I'd like to add these to my git annex, so I don't have to resort to a time-consuming hack (such as setting up a proper submodule, or bundling the repositories).
But when I try to add a .git directory to git annex, I get a bunch of errors of the form
git-annex: user error (xargs ["-0","git","--git-dir=/tmp/tmp.LhGN3nT9uM/annex/.git","--work-tree=/tmp/tmp.LhGN3nT9uM/annex","add","--"] exited 123)
failed
git-annex: add: 1 failed
add repo/.git/hooks/pre-push.sample ok
(Recording state in git...)
error: Invalid path 'repo/.git/hooks/pre-push.sample'
error: unable to add repo/.git/hooks/pre-push.sample to index
fatal: adding files failed
STR:
$ mkdir annex
$ cd annex
annex$ git init
annex$ git annex init
annex$ cd ..
$ mkdir repo
$ cd repo
repo$ git init
repo$ cd ..
$ mv repo annex
$ cd annex
annex$ find repo | xargs -n1 git annex add
# Lots of errors of the form above.
You can't simply do `git annex add repo` because that will ignore the .git directory. Similarly,` git annex add .git` (which I'd think really should try to add the contents of the .git directory) ignores everything.
I don't know what this error means. Is there a right way to work around this?

View file

@ -14,7 +14,7 @@ The things that are most problimatic so far:
really horrible dotfile type locking in the Windows code paths, but I really horrible dotfile type locking in the Windows code paths, but I
don't trust it at all of course. don't trust it at all of course.
* There is, apparently, no way to set an environment variable in Windows * There is, apparently, no way to set an environment variable in Windows
from Haskell. It is only possible to set up a new processes's environment from Haskell. It is only possible to set up a new process' environment
before starting it. Luckily most of the really crucial environment before starting it. Luckily most of the really crucial environment
variable stuff in git-annex is of this latter sort, but there were variable stuff in git-annex is of this latter sort, but there were
a few places I had to stub out code that tries to manipulate git-annex's a few places I had to stub out code that tries to manipulate git-annex's

View file

@ -0,0 +1,8 @@
[[!comment format=mdwn
username="https://me.yahoo.com/a/bBy7WkgQicYHIiiyj.Vm0TcMbxi2quzbPFef#6f9f7"
nickname="Frederik Vanrenterghem"
subject="comment 7"
date="2013-05-12T14:04:29Z"
content="""
That all sounded very plausible, but for some reason it failed to work for me. I went back to basics and tried getting there by replicating steps 1 to 3 of the walkthrough, but also to no aval. I'll still try one more thing - setting up a local repository on the VPS and syncing it to my main one over XMPP. That seems rather convoluted given the bare repository is on the same server, but who knows...
"""]]

View file

@ -0,0 +1,12 @@
[[!comment format=mdwn
username="http://edheil.wordpress.com/"
ip="173.162.44.162"
subject="comment 8"
date="2013-05-12T19:06:14Z"
content="""
So what *does* show up? Is your repo an empty directory? Or are the symlinks that should point to content there?
as far as git goes, are you on the master branch? *is* there a master branch? If you do \"git status\" what do you see?
There's no reason this shouldn't work for you....
"""]]

View file

@ -0,0 +1,18 @@
[[!comment format=mdwn
username="https://www.google.com/accounts/o8/id?id=AItOawlJemqsekZTC5dvc-MAByUWaBvsYE-mFUo"
nickname="Gábor"
subject="Cabal dependencies"
date="2013-05-12T12:52:20Z"
content="""
After finishing the installation the cabal way, here are the packages I installed. It is possible that there are other packages I installed previously as dependency for other packages.
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.2 LTS
Release: 12.04
Codename: precise
$ apt-get install cabal-install libgnutls28-dev libgsasl7-dev c2hs libghc-libxml-sax-dev zlib1g-dev libghc-zlib-dev
$ cabal install git-annex --bindir=$HOME/bin
"""]]