summaryrefslogtreecommitdiff
path: root/doc/bugs/git_annex_sync_can_commit_files_to_.git__47__objects_instead_of_.git__47__ann...
diff options
context:
space:
mode:
authorGravatar https://openid.stackexchange.com/user/3ee5cf54-f022-4a71-8666-3c2b5ee231dd <Anthony_DeRobertis@web>2015-01-01 18:46:05 +0000
committerGravatar admin <admin@branchable.com>2015-01-01 18:46:05 +0000
commitba2e8a34285681bb7285bb73e8eba1307bc02d28 (patch)
treeb6477b925478c3e0e3886d13774f36e89c23eb1e /doc/bugs/git_annex_sync_can_commit_files_to_.git__47__objects_instead_of_.git__47__annex.mdwn
parent701f1bff5444310154ab17355fde4bc8edf5e8a9 (diff)
Diffstat (limited to 'doc/bugs/git_annex_sync_can_commit_files_to_.git__47__objects_instead_of_.git__47__annex.mdwn')
-rw-r--r--doc/bugs/git_annex_sync_can_commit_files_to_.git__47__objects_instead_of_.git__47__annex.mdwn31
1 files changed, 31 insertions, 0 deletions
diff --git a/doc/bugs/git_annex_sync_can_commit_files_to_.git__47__objects_instead_of_.git__47__annex.mdwn b/doc/bugs/git_annex_sync_can_commit_files_to_.git__47__objects_instead_of_.git__47__annex.mdwn
new file mode 100644
index 000000000..9235c002f
--- /dev/null
+++ b/doc/bugs/git_annex_sync_can_commit_files_to_.git__47__objects_instead_of_.git__47__annex.mdwn
@@ -0,0 +1,31 @@
+### Please describe the problem.
+
+If you `git annex edit FILE`, an already-committed file, then do `git annex sync`, FILE will be added to .git/objects, but can be cleaned up with `git prune`. An annoyance, but not a huge problem.
+
+If, on the other hand, you do git annex add, then edit, then sync, it will actually be committed to the git repository. Fixing that is a lot less trivial than `git prune`.
+
+### What steps will reproduce the problem?
+
+ anthony@Watt:/tmp/test$ du -sh .git/objects/
+ 24K .git/objects/
+ anthony@Watt:/tmp/test$ dd if=/dev/urandom bs=$[1024*1024] count=100 of=100mb-3
+ 100+0 records in
+ 100+0 records out
+ 104857600 bytes (105 MB) copied, 6.08718 s, 17.2 MB/s
+ anthony@Watt:/tmp/test$ git annex add 100mb-3
+ add 100mb-3 ok
+ (Recording state in git...)
+ anthony@Watt:/tmp/test$ git annex edit 100mb-3
+ unlock 100mb-3 (copying...) ok
+ anthony@Watt:/tmp/test$ git annex sync
+ commit ok
+ anthony@Watt:/tmp/test [$?=130]$ git prune
+ anthony@Watt:/tmp/test$ du -sh .git/objects/
+ 101M .git/objects/
+ anthony@Watt:/tmp/test$ ls -l 100mb-3
+ -rw-r--r-- 1 anthony anthony 104857600 Jan 1 13:41 100mb-3
+
+
+### What version of git-annex are you using? On what operating system?
+
+5.20141125 on Debian testing/unstable