summaryrefslogtreecommitdiff
path: root/doc/bugs/git-annex_sync_does_not_push.mdwn
diff options
context:
space:
mode:
authorGravatar http://svario.it/gioele <gioele@web>2014-07-11 09:25:14 +0000
committerGravatar admin <admin@branchable.com>2014-07-11 09:25:14 +0000
commit8152e77659e00cf3425671074564bfeb0a2a208a (patch)
treeec7bac7067392c3d29b254bad4917c15e825c1ef /doc/bugs/git-annex_sync_does_not_push.mdwn
parent0091e3af4a51f649b5f9a6a2153412359495195a (diff)
New bug: git-annex sync does not push
Diffstat (limited to 'doc/bugs/git-annex_sync_does_not_push.mdwn')
-rw-r--r--doc/bugs/git-annex_sync_does_not_push.mdwn50
1 files changed, 50 insertions, 0 deletions
diff --git a/doc/bugs/git-annex_sync_does_not_push.mdwn b/doc/bugs/git-annex_sync_does_not_push.mdwn
new file mode 100644
index 000000000..3f17664f2
--- /dev/null
+++ b/doc/bugs/git-annex_sync_does_not_push.mdwn
@@ -0,0 +1,50 @@
+### Please describe the problem.
+
+From the description of `sync` in the man page I assume it should be able to push all the branches it needs:
+
+> The sync process involves first committing all local changes, then fetching and merging the `synced/master` and the `git-annex` branch from the remote repositories, and finally pushing the changes back to those branches on the remote repositories. You can use standard git commands to do each of those steps by hand, or if you don't want to worry about the details, you can use sync.
+
+However this does not seem to be the case if one starts from an empty repository.
+
+### What steps will reproduce the problem?
+
+The following script (from <https://gist.github.com/gioele/d4e0905a3570f097fb0b>) will reproduce this problem:
+
+ #!/bin/sh -x
+
+ set -e ; set -u
+ export LC_ALL=C
+
+ d=$(pwd)
+
+ # cleanup
+ chmod a+rwx -R REPO pc1 || true
+ rm -Rf REPO pc1
+
+ # create central git repo
+ mkdir -p REPO/Docs.git
+ cd REPO/Docs.git
+ git init --bare
+ cd $d
+
+ # populate repo in PC1
+ mkdir -p pc1/Docs
+ cd pc1/Docs
+ echo AAA > fileA
+ echo BBB > fileB
+
+ git init
+ git remote add origin $d/REPO/Docs.git
+ git fetch --all
+
+ git annex init "pc1"
+ git annex add .
+ git annex sync
+
+ find $d/REPO/Docs.git/refs
+
+ # there should be some branches inside refs
+
+### What version of git-annex are you using? On what operating system?
+
+5.20140412ubuntu1 from Ubuntu 14.04.