diff options
author | Joey Hess <joeyh@joeyh.name> | 2017-02-15 16:13:30 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2017-02-15 16:13:30 -0400 |
commit | 6604062163fd85697f69128c5c6dcb35512254b9 (patch) | |
tree | a043b43f5ffbd9365f94dbc57db4e840e40a3b6a /doc/todo | |
parent | 0d66a45d49fd2983e5193312523afb96f34f8b76 (diff) |
sync: Improve integration with receive.denyCurrentBranch=updateInstead
By displaying error messages from the remote then it fails to update
its checked out branch.
Error messages in the default receive.denyCurrentBranch are still
suppressed, which matches user expectations.
This commit was sponsored by Nick Daly on Patreon.
Diffstat (limited to 'doc/todo')
-rw-r--r-- | doc/todo/simpler_setup_for_post-update_merge.mdwn | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/doc/todo/simpler_setup_for_post-update_merge.mdwn b/doc/todo/simpler_setup_for_post-update_merge.mdwn index 27bace3ec..8d25f44b9 100644 --- a/doc/todo/simpler_setup_for_post-update_merge.mdwn +++ b/doc/todo/simpler_setup_for_post-update_merge.mdwn @@ -25,18 +25,20 @@ filesystems, and on Windows.) Alternatively, receive.denyCurrentBranch can be set to updateInstead. With this configuration, `git annex sync` automatically updates the -work-tree of the remote already. - -However, any differences in the remote's work tree or index (other than new -unstaged files) prevent the work tree update. Currently, `git annex sync` -does the master:master push quietly, because in standard non-bare repos -that's expected to fail. So, failures to update the remote work tree -won't be noticed. (`git annex sync` could look at the remote's -receive.denyCurrentBranch setting, but this would be hard to do for ssh -remotes). - -Also, this wouldn't work for direct mode repositories, which are often used -on removable drives. +work-tree of the remote already. + +This wouldn't work for direct mode repositories, which are often used +on removable drives, since git thinks they're bare repos. + +Nor will it work for adjusted branches, since the adjusted branch is not +updated by the push. + +--- + +Could the updateInstead configuration be made to work for direct mode and +adjusted branches? Could install a post-update hook, that runs a git-annex +command that checks for updateInstead, and emulates its behavior, handling +direct mode and adjusted branches. --- |