git-annex/doc/forum/Issues_with_IPFS_special_remote
Joey Hess 1cc7b2661e
push synced/master before synced/git-annex
sync: Partly work around github behavior that first branch to be pushed to
a new repository is assumed to be the head branch, by not pushing
synced/git-annex first.

github expects master (or whatever the name is) to be pushed first, but
git-annex sync can't, because it's got to also support pushes to non-bare
repos where pushing master fails, as explained in the big comment. So
pushing synced/master is not entirely a fix, but at least it makes github
default to a branch with the stuff the user expects in it, not a bunch of
annex log files.

Aside from fixing github to not make this assumption, or improving
the git push protocol to include what the current HEAD is, the only other
approach I can think of is to identify git push's progress messages and
display those when pushing master, while filtering out error messages
about non-fast-forward etc. But git doesn't provide a way to separate out
or identify its progress messages.

Sponsored-by: Luke Shumaker on Patreon
2021-06-21 12:32:21 -04:00
..
comment_1_74c586e5af079f0d6c42975ac294e766._comment
comment_2_283aafce5dc1735310daa8329a432002._comment
comment_3_fa017d01e9eca59074adf2224e20994b._comment Added a comment: setting up sync 2021-06-18 18:55:00 +00:00
comment_4_e49c62ca2e0f0d455469d5bc4483aff3._comment Added a comment 2021-06-19 10:22:58 +00:00
comment_5_2147808f9b15be995988e2c71bc0b271._comment Added a comment 2021-06-19 12:14:33 +00:00
comment_6_3a34db5281419578201f5f74cf97a830._comment Added a comment 2021-06-19 18:31:59 +00:00
comment_7_765fef6f0b5da3e5c87c029fea2362a1._comment Added a comment 2021-06-20 06:54:37 +00:00
comment_8_edd64d315651d5c7d5e1f802b68b8b68._comment Added a comment 2021-06-20 07:15:04 +00:00
comment_9_07b1f3c1e744e910f1738925d79e3d1a._comment Added a comment 2021-06-20 07:44:35 +00:00
comment_10_d13e439c3c242606d8b4377831e38a2b._comment comment 2021-06-21 12:17:19 -04:00
comment_11_e53b0158471605950896cafac7aac4da._comment push synced/master before synced/git-annex 2021-06-21 12:32:21 -04:00