Re: receive.denyCurrentBranch=updateInstead won't update the repo
- From
- Adam Sinus Skawiński <adam.skawinski@sinpi.net>
- Date
- Jul 17, 2023, 22:26 UTC
- Message-ID
- <CAGE71k3c+CGT=42cfkh+2Z-BcvefojNwpzWfc_XHPkBK8psJfA@mail.gmail.com>
- In-Reply-To
- <CAGE71k2bdy2aYy7speu=OOStopgjzVNOPQ_-V-63aCURLibFWw@mail.gmail.com>
(I seem to have responded privately to the helpful Junio C Hamano, instead of to the list, sorry about that.)
Well, there's progress. Indeed I must have borked something with the hook, as I can now confirm that the hook works and fails as intended.
Still, local-to-server pushes fail to checkout on the server, without any indication as to why. The server clearly recognizes the updateInstead option, as it runs the push-to-checkout hook, but then it silently fails to update the remote worktree.
Any idea what could be causing this?
Pushing to ssh://*hostname*/home/uuuusername/domains/mywebsite.com Enumerating objects: 5, done. Counting objects: 100% (5/5), done. Delta compression using up to 8 threads Compressing objects: 100% (3/3), done. Writing objects: 100% (3/3), 284 bytes | 284.00 KiB/s, done. Total 3 (delta 2), reused 0 (delta 0), pack-reused 0 remote: HOOK UPDATE: 1=refs/heads/mywebsite 2=650585f1c2abdbbd68de71acfb31b5d66ee1d0f3 3=adc4a555cfc23e037ad026a405a13e7a468188c4 GITDIR= HOOK PUSH-TO-CHECKOUT 1=adc4a555cfc23e037ad026a405a13e7a468188c4 2= 3= GITDIR= To ssh://*hostname*/home/uuuusername/domains/mywebsite.com 650585f..adc4a55 mywebsite -> mywebsite updating local tracking ref 'refs/remotes/myserver-mywebsite/mywebsite'
-- Adam "Sinus" Skawiński