diff options
author | https://me.yahoo.com/a/n0FWjM0duI0IytxNwAsBBv1BvGd8rA--#a9eec <Le@web> | 2016-04-01 17:02:44 +0000 |
---|---|---|
committer | admin <admin@branchable.com> | 2016-04-01 17:02:44 +0000 |
commit | de5e14bc7a8d62e2c7f488ed28f783654ab1a93e (patch) | |
tree | e93d57e58beed700d9e198a20bd18ae965e5df0d | |
parent | 71a5821ede3f428121551010e02729826e86aa5b (diff) |
-rw-r--r-- | doc/bugs/v6_repo_can_not_restore_files_with_executable_permission.mdwn | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/doc/bugs/v6_repo_can_not_restore_files_with_executable_permission.mdwn b/doc/bugs/v6_repo_can_not_restore_files_with_executable_permission.mdwn new file mode 100644 index 000000000..b95e0c286 --- /dev/null +++ b/doc/bugs/v6_repo_can_not_restore_files_with_executable_permission.mdwn @@ -0,0 +1,90 @@ +### Please describe the problem. +If a file is executable, the content of the file remains to be an SHA hash in a newly cloned repository. Neither 'git annex sync --content' or 'git annex get' can bring the file back. +The only way to bring the file back is to remove the file and do a 'git checkout' or 'git reset HEAD --hard' + +If the file is not an executable (a tarball for example), it works as expected. + +### What steps will reproduce the problem? +See log below. + +### What version of git-annex are you using? On what operating system? +6.20160318-gd594fc0 on Ubuntu 15.10 + +### Please provide any additional information below. + +[[!format sh """ +# If you can, paste a complete transcript of the problem occurring here. +# If the problem is with the git-annex assistant, paste in .git/annex/daemon.log + +vagrant@vm:/tmp/$ cd annex/ +vagrant@vm:/tmp/annex/$ mkdir repo1 +vagrant@vm:/tmp/annex/$ cd repo1/ +vagrant@vm:/tmp/annex/repo1/$ git init +Initialized empty Git repository in /tmp/annex/repo1/.git/ +vagrant@vm:/tmp/annex/repo1/$ git annex init --version=6 +init ok +(recording state in git...) +vagrant@vm:/tmp/annex/repo1/$ cp /bin/ls . +‘/bin/ls’ -> ‘./ls’ +vagrant@vm:/tmp/annex/repo1/$ git add ls +vagrant@vm:/tmp/annex/repo1/$ git ci -am 'added ls binary' +(recording state in git...) +[master (root-commit) 7889519] added ls binary + 1 file changed, 1 insertion(+) + create mode 100755 ls +vagrant@vm:/tmp/annex/repo1/$ ls -l +total 116 +-rwxr-xr-x 1 vagrant vagrant 118272 Apr 1 12:56 ls +vagrant@vm:/tmp/annex/repo1/$ cd .. +vagrant@vm:/tmp/annex/$ git clone repo1 repo2 +Cloning into 'repo2'... +done. +vagrant@vm:/tmp/annex/$ cd repo2 +vagrant@vm:/tmp/annex/repo2/$ git annex init --version=6 +init (merging origin/git-annex into git-annex...) +(recording state in git...) +(scanning for unlocked files...) +ok +(recording state in git...) +vagrant@vm:/tmp/annex/repo2/$ ls -l +total 4 +-rwxrwxr-x 1 vagrant vagrant 97 Apr 1 12:57 ls +vagrant@vm:/tmp/annex/repo2/$ git annex sync --content +commit ok +pull origin +ok +get ls (from origin...) (checksum...) ok +pull origin +ok +(recording state in git...) +push origin +Counting objects: 11, done. +Delta compression using up to 8 threads. +Compressing objects: 100% (9/9), done. +Writing objects: 100% (11/11), 1.10 KiB | 0 bytes/s, done. +Total 11 (delta 1), reused 0 (delta 0) +To /tmp/annex/repo1 + * [new branch] git-annex -> synced/git-annex + * [new branch] master -> synced/master +ok +vagrant@vm:/tmp/annex/repo2/$ ls -l +total 4 +-rwxrwxr-x 1 vagrant vagrant 97 Apr 1 12:57 ls +vagrant@vm:/tmp/annex/repo2/$ cat ls +/annex/objects/SHA256E-s118272--0b786b336b0391b56dabb7b078a23ec4295115628cfd4b635f4d8ae5ae0cfafc +vagrant@vm:/tmp/annex/repo2/$ git annex get ls +vagrant@vm:/tmp/annex/repo2/$ cat ls +/annex/objects/SHA256E-s118272--0b786b336b0391b56dabb7b078a23ec4295115628cfd4b635f4d8ae5ae0cfafc +vagrant@vm:/tmp/annex/repo2/$ rm ls +vagrant@vm:/tmp/annex/repo2/$ git checkout ls +vagrant@vm:/tmp/annex/repo2/$ ls -l +total 116 +-rwxrwxr-x 1 vagrant vagrant 118272 Apr 1 12:59 ls + + +# End of transcript or log. +"""]] + +### Have you had any luck using git-annex before? (Sometimes we get tired of reading bug reports all day and a lil' positive end note does wonders) + + |