diff options
author | http://joeyh.name/ <http://joeyh.name/@web> | 2014-10-09 20:43:34 +0000 |
---|---|---|
committer | admin <admin@branchable.com> | 2014-10-09 20:43:34 +0000 |
commit | c710734c41cd56b6a42c9e52f52299d70852fc42 (patch) | |
tree | 9d72c115e65314c67326422629b478da3ab4e4d2 | |
parent | 511394a7a9d008376c43c95d3b4e27e5ee8ee22d (diff) |
Added a comment
-rw-r--r-- | doc/bugs/modified_permissions_persist_after_unlock__44___commit/comment_4_ecf84eeb4feddafcfa7ba7d4a2f164b1._comment | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/bugs/modified_permissions_persist_after_unlock__44___commit/comment_4_ecf84eeb4feddafcfa7ba7d4a2f164b1._comment b/doc/bugs/modified_permissions_persist_after_unlock__44___commit/comment_4_ecf84eeb4feddafcfa7ba7d4a2f164b1._comment new file mode 100644 index 000000000..4ccf2a3a9 --- /dev/null +++ b/doc/bugs/modified_permissions_persist_after_unlock__44___commit/comment_4_ecf84eeb4feddafcfa7ba7d4a2f164b1._comment @@ -0,0 +1,13 @@ +[[!comment format=mdwn + username="http://joeyh.name/" + ip="209.250.56.54" + subject="comment 4" + date="2014-10-09T20:43:34Z" + content=""" +Ah, ok. git's index has the file listed as not being a symlink, because `git commit $file` stages it in the index that way. Running `git reset --hard` will fix git's index. + +This problem is avoided if you `git annex add $file` before committing. Which is generally a good idea +for other reasons, including avoiding staging a potentially huge file's contents in the git index in the first place. + +git-annex's pre-commit hook should probably update the git index for the committed files, replacing the staged full file contents with the git-annex symlink. That would avoid this problem. +"""]] |