Bug#634347: git-annex - unannex does not work

July 18th, 2011 - 03:10 pm ET by Bastian Blank | Report spam
Package: git-annex
Version: 3.20110707
Severity: normal

git annex unannex is documented as the reversal of add.
It does not work:

| $ git annex init test
| init test ok
| $ cp /etc/motd .
| $ git annex add motd
| add motd ok
| (Recording state in git...)
| $ git annex unannex motd
| git-annex: This command cannot be run when there are already files staged for commit.

After a unstage, it is completely silent:

| $ git rm --cached motd
| rm 'motd'
| $ git status
| # On branch master
| #
| # Initial commit
| #
| # Untracked files:
| # (use "git add <file>..." to include in what will be committed)
| #
| # motd
| nothing added to commit but untracked files present (use "git add" to track)
| $ git annex unannex motd
| $ ls -l
| total 0
| lrwxrwxrwx 1 bastian bastian 80 18. Jul 20:55 motd -> .git/annex/objects/94/7P/WORM-s375-m1311015311--motd/WORM-s375-m1311015311--motd

Bastian

Debian Release: 6.0.1
APT prefers stable
APT policy: (990, 'stable'), (500, 'stable-updates'), (500, 'testing'), (400, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/1 CPU core)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages git-annex depends on:
ii git [git-core] 1:1.7.2.5-1 fast, scalable, distributed revisi
ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib
ii libffi5 3.0.9-3 Foreign Function Interface library
ii libgmp10 2:5.0.1+dfsg-7 Multiprecision arithmetic library
ii libpcre3 8.12-3 Perl 5 Compatible Regular Expressi
ii openssh-client 1:5.5p1-6 secure shell (SSH) client, for sec
ii rsync 3.0.7-2 fast remote file copy program (lik
ii uuid 1.6.2-1 the Universally Unique Identifier

git-annex recommends no packages.

Versions of packages git-annex suggests:
pn bup <none> (no description available)
ii gnupg 1.4.10-4 GNU privacy guard - a free PGP rep
pn graphviz <none> (no description available)




To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
email Follow the discussionReplies 3 repliesReplies Make a reply

Replies

#1 Joey Hess
July 18th, 2011 - 05:00 pm ET | Report spam

Bastian Blank wrote:
Package: git-annex
Version: 3.20110707
Severity: normal

git annex unannex is documented as the reversal of add.
It does not work:

| $ git annex init test
| init test ok
| $ cp /etc/motd .
| $ git annex add motd
| add motd ok
| (Recording state in git...)
| $ git annex unannex motd
| git-annex: This command cannot be run when there are already files staged for commit.

After a unstage, it is completely silent:

| $ git rm --cached motd
| rm 'motd'
| $ git status
| # On branch master
| #
| # Initial commit
| #
| # Untracked files:
| # (use "git add <file>..." to include in what will be committed)
| #
| # motd
| nothing added to commit but untracked files present (use "git add" to track)
| $ git annex unannex motd
| $ ls -l
| total 0
| lrwxrwxrwx 1 bastian bastian 80 18. Jul 20:55 motd -> .git/annex/objects/94/7P/WORM-s375-m1311015311--motd/WORM-s375-m1311015311--motd



git-annex only works on files that are present in git (except for add of
course), so you have to commit the file to git before it can be
unannexed.

see shy jo






To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact

Similar topics