Skip to content

Instantly share code, notes, and snippets.

@djmitche
Last active August 29, 2015 14:11
Show Gist options
  • Select an option

  • Save djmitche/6cb0f56afa8744253fdd to your computer and use it in GitHub Desktop.

Select an option

Save djmitche/6cb0f56afa8744253fdd to your computer and use it in GitHub Desktop.
git-annex setup
[[email protected] custom]# git init
Initialized empty Git repository in /tmp/git-annex-stuff/custom/.git/
# use fqdn for the name
[[email protected] custom]# git annex init $(facter fqdn)
init relabs-puppet2.relabs.releng.scl3.mozilla.com ok
(Recording state in git...)
# then added and committed existing files
git annex add .
git commit -am "old files"
## NOTE: using 'git add' is BAD -- a 'git annex add' afterward will not tell you what happened..
[[email protected] git-annex-stuff]# git clone custom custom2
Cloning into 'custom2'...
done.
[[email protected] git-annex-stuff]# cd custom2/
[[email protected] custom2]# git annex init custom2
init custom2 ok
(Recording state in git...)
[[email protected] custom2]# git remote add custom ../custom
[[email protected] custom2]# cd ../custom
[[email protected] custom]# git remote add custom2 ../custom2/
[[email protected] custom]# cp -r /data/repos/yum/releng/public/CentOS/ .
[[email protected] custom]# git annex add CentOS/
[[email protected] custom]# git commit -am "added centos"
[[email protected] custom2]# git annex sync custom
## seems to do a 'git pull', but doesn't fill in the missing files (-> broken repo)
## and...
[[email protected] custom2]# git annex get .
fatal: Could not switch to '../../../.git/annex/objects/qQ/wV/SHA256-s49163962--3c2221750d5551d9a4fa1596ff44beb61bc586a23d0013b39cf71d625ef85750': No such file or directory
git-annex: <file descriptor: 4>: hGetLine: end of file
failed
fatal: Could not switch to '../../../.git/annex/objects/p0/8J/SHA256-s94724465--c04218fb1ac8c291583fed821292e39f97c1740d213cf50f41d73475f868e577': No such file or directory
## I see the same thing trying to follow the git-annex walkthrough
* direct mode?
* 'git annex sync --content' doesn't work...
@djmitche
Copy link
Author

djmitche commented Dec 8, 2014

CentOS/EPEL 6 support git-annex-3.20120522. CentOS/EPEL 7 support git-annex-5.mumble, but we're not running CentOS 7, and trying to mix the two very much does not work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment