summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar gernot <gernot@web>2011-11-07 20:55:54 +0000
committerGravatar admin <admin@branchable.com>2011-11-07 20:55:54 +0000
commit26d3c3b4977405127b52da0cddefe845b855f08f (patch)
treeefa52e4182cdb3e6d3fee2aca5af5839ec75301c
parent3c263cc9ea7fe5dc5b07db4a66281cda752fc6b3 (diff)
-rw-r--r--doc/bugs/Error_when_moving_annexed_file_to_a_.gitignored_location.mdwn19
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/bugs/Error_when_moving_annexed_file_to_a_.gitignored_location.mdwn b/doc/bugs/Error_when_moving_annexed_file_to_a_.gitignored_location.mdwn
new file mode 100644
index 000000000..ca2cf7585
--- /dev/null
+++ b/doc/bugs/Error_when_moving_annexed_file_to_a_.gitignored_location.mdwn
@@ -0,0 +1,19 @@
+I just noticed that if you move a git-annex symlink to a location ignored by git, it simply works. Upon committing that change, however, part of git-annex's `fix` function apparently tries to `git-add` the symlink. This fails because the new, ignored location requires a `git-add --force`.
+
+Considering that git proper doesn't fail or warn, I think git-annex shouldn't either.
+
+This is the error message:
+
+ $ git mv annexed-file ignored-dir/
+ $ git commit
+ fix ignored-dir/annexed-file ok
+ (Recording state in git...)
+ The following paths are ignored by one of your .gitignore files:
+ ignored-dir
+ Use -f if you really want to add them.
+ fatal: no files added
+ Command xargs ["-0","git","--git-dir=/home/[...]/repo/.git","--work-tree=/home/[...]/repo","add","--"] failed; exit code 123
+
+ git-annex: user error (Command xargs ["-0","git","--git-dir=/home/[...]/repo/.git","--work-tree=/home/[...]/repo","add","--"] failed; exit code 123)
+ failed
+ git-annex: 1 failed