hg-git push to non-bare git repo

9 views
Skip to first unread message

Guy Pardon

unread,
Mar 1, 2024, 9:01:28 AMMar 1
to hg-git
Hi,

I am experimenting with dual git and hg checkouts. For this I use hg-git of course. I tried the following:

1. git clone <git repo> 
2. hg clone <git repo> <git repo>-hg
3. edit and commit files in <git repo>-hg
4. hg commit in <git repo>-hg
5. hg push to <git repo> 

Step 5 fails because the repo is "non-bare". 

So my questions:

1. How can I make this work with non-bare repos?
2. If in step 1 I clone a bare repo, what happens if step 5 gives conflicting edits and hence extra branches / heads?

Thanks
Guy

Uwe Brauer

unread,
Mar 1, 2024, 9:48:35 AMMar 1
to Guy Pardon, hg-git
You can set the configuration in the git repositories

Either

[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[receive]
denyCurrentBranch = ignore
Or

[core]
repositoryformatversion = 0
filemode = true
bare = true
logallrefupdates = true

Uwe Brauer
--
I strongly condemn Hamas heinous despicable pogroms/atrocities on Israel
I strongly condemn Putin's war of aggression against Ukraine.
I support to deliver weapons to Ukraine's military.
I support the EU and NATO membership of Ukraine.

Guy Pardon

unread,
Mar 4, 2024, 6:13:59 AMMar 4
to hg-git
Thanks Uwe!

Op vrijdag 1 maart 2024 om 15:48:35 UTC+1 schreef o...@ucm.es:
Reply all
Reply to author
Forward
0 new messages