summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorGravatar yarikoptic <yarikoptic@web>2017-03-22 18:59:49 +0000
committerGravatar admin <admin@branchable.com>2017-03-22 18:59:49 +0000
commit8e5dee508c0099829c578b1d03d6e1cef086abfd (patch)
tree40ae2b41669bd27169265a36ef5c8e6175c50b89 /doc
parent8f877c4d1856d512467f1257c94582ebc4decfa3 (diff)
initial report
Diffstat (limited to 'doc')
-rw-r--r--doc/bugs/annex_doesn__39__t_fixup_symlinks_when___34__git_commit_path__95__to__95__repo__34___is_used.mdwn79
1 files changed, 79 insertions, 0 deletions
diff --git a/doc/bugs/annex_doesn__39__t_fixup_symlinks_when___34__git_commit_path__95__to__95__repo__34___is_used.mdwn b/doc/bugs/annex_doesn__39__t_fixup_symlinks_when___34__git_commit_path__95__to__95__repo__34___is_used.mdwn
new file mode 100644
index 000000000..b72788f8f
--- /dev/null
+++ b/doc/bugs/annex_doesn__39__t_fixup_symlinks_when___34__git_commit_path__95__to__95__repo__34___is_used.mdwn
@@ -0,0 +1,79 @@
+### Please describe the problem.
+
+whenever we 'git mv' some files from one dir to another, "git commit path_to_that_repo" seems to cause git annex to not fix up the symlinks
+
+### What steps will reproduce the problem?
+
+see below complete examples
+
+### What version of git-annex are you using? On what operating system?
+
+6.20170307+gitg24ade8a25-1~ndall+1
+
+### Please provide any additional information below.
+
+correct operation:
+
+[[!format sh """
+
+hopa:/tmp/testl
+$> builtin cd /tmp/; chmod +w -R /tmp/testl; rm -rf /tmp/testl; mkdir /tmp/testl && cd /tmp/testl && git init && git annex init && mkdir d && echo 123 > d/123 && git annex add d/123 && git commit -m added && git mv d/123 123 && git annex add . && echo -e '#!/bin/sh\ngit annex pre-commit --debug . >/tmp/precommit.log 2>&1\n' >| .git/hooks/pre-commit && git commit -m msg && ls -l 123 && git status && cat /tmp/precommit.log
+Initialized empty Git repository in /tmp/testl/.git/
+init ok
+(recording state in git...)
+add d/123 ok
+(recording state in git...)
+[master (root-commit) a04d6e9] added
+ 1 file changed, 1 insertion(+)
+ create mode 120000 d/123
+[master 1be2c88] msg
+ 2 files changed, 1 insertion(+), 1 deletion(-)
+ create mode 120000 123
+ delete mode 120000 d/123
+lrwxrwxrwx 1 yoh yoh 178 Mar 22 14:52 123 -> .git/annex/objects/G6/qW/SHA256E-s4--181210f8f9c779c26da1d9b2075bde0127302ee0e3fca38c9a83f5b1dd8e5d3b/SHA256E-s4--181210f8f9c779c26da1d9b2075bde0127302ee0e3fca38c9a83f5b1dd8e5d3b
+On branch master
+nothing to commit, working tree clean
+[2017-03-22 14:52:45.459507064] read: git ["--git-dir=.git","--work-tree=.","--literal-pathspecs","diff","--cached","--name-only","-z","--diff-filter=ACMRT","--","."]
+fix 123 ok
+[2017-03-22 14:52:45.46373033] read: git ["--git-dir=.git","--work-tree=.","--literal-pathspecs","diff","--name-only","--diff-filter=T","-z","--cached","--","."]
+[2017-03-22 14:52:45.46776695] read: git ["--git-dir=.git","--work-tree=.","--literal-pathspecs","symbolic-ref","-q","HEAD"]
+[2017-03-22 14:52:45.471690183] process done ExitSuccess
+[2017-03-22 14:52:45.471781853] read: git ["--git-dir=.git","--work-tree=.","--literal-pathspecs","show-ref","refs/heads/master"]
+[2017-03-22 14:52:45.475456411] process done ExitSuccess
+(recording state in git...)
+[2017-03-22 14:52:45.475535994] feed: xargs ["-0","git","--git-dir=.git","--work-tree=.","--literal-pathspecs","add","--force","--"]
+[2017-03-22 14:52:45.482800008] process done ExitSuccess
+"""]]
+
+and this time commit with the path: (git commit -m msg /tmp/testl)
+
+[[!format sh """
+$> builtin cd /tmp/; chmod +w -R /tmp/testl; rm -rf /tmp/testl; mkdir /tmp/testl && cd /tmp/testl && git init && git annex init && mkdir d && echo 123 > d/123 && git annex add d/123 && git commit -m added && git mv d/123 123 && git annex add . && echo -e '#!/bin/sh\ngit annex pre-commit --debug . >/tmp/precommit.log 2>&1\n' >| .git/hooks/pre-commit && git commit -m msg /tmp/testl && ls -l 123 && git status && cat /tmp/precommit.log
+Initialized empty Git repository in /tmp/testl/.git/
+init ok
+(recording state in git...)
+add d/123 ok
+(recording state in git...)
+[master (root-commit) 1438090] added
+ 1 file changed, 1 insertion(+)
+ create mode 120000 d/123
+[master 8912aa3] msg
+ 1 file changed, 0 insertions(+), 0 deletions(-)
+ rename d/123 => 123 (100%)
+lrwxrwxrwx 1 yoh yoh 181 Mar 22 14:52 123 -> ../.git/annex/objects/G6/qW/SHA256E-s4--181210f8f9c779c26da1d9b2075bde0127302ee0e3fca38c9a83f5b1dd8e5d3b/SHA256E-s4--181210f8f9c779c26da1d9b2075bde0127302ee0e3fca38c9a83f5b1dd8e5d3b
+On branch master
+nothing to commit, working tree clean
+[2017-03-22 14:52:55.857221368] read: git ["--git-dir=.git","--work-tree=.","--literal-pathspecs","diff","--name-only","--diff-filter=T","-z","--cached","--","."]
+[2017-03-22 14:52:55.861708907] process done ExitSuccess
+[2017-03-22 14:52:55.861809182] read: git ["--git-dir=.git","--work-tree=.","--literal-pathspecs","symbolic-ref","-q","HEAD"]
+[2017-03-22 14:52:55.865393029] process done ExitSuccess
+[2017-03-22 14:52:55.865471585] read: git ["--git-dir=.git","--work-tree=.","--literal-pathspecs","show-ref","refs/heads/master"]
+[2017-03-22 14:52:55.869145816] process done ExitSuccess
+
+
+"""]]
+
+
+note that there is no "(recording state in git...) ..." portion in the output!
+
+[[!meta author=yoh]]