Closed adamcstephens closed 1 year ago
I'm currently working on adding this feature. The challenge I'm facing is that Github doesn't have the same mirror feature as gogs, gitea, or forgejo. This makes the implementation a bit trickier. I'll let you know how it goes.
Hi,
I have just added a mirroring option for Github to the main
branch. Could you please test and confirm if it functions as you intended?
This works as I'd expect, but does show an error when the destination is already up to date
2023-08-15T15:35:23-04:00 ERR already up-to-date stage=github url=https://codeberg.org/adamcstephens/nix-sandbox.git
Thanks a lot for testing it. I'll fix that issue tomorrow. ‘go-git‘ returns an error if anything is already up to date.
Do the other destinations that natively support mirroring handle all branches? I just realized this only syncs the main branch.
Yes, currently it is only the main branch. I think I found a solution for that but I'll implement that tomorrow.
the current main
branch should push all branches and tags.
Do the other destinations that natively support mirroring handle all branches? I just realized this only syncs the main branch.
Yes, gitea/gogs/forgejo mirror all branches and tags by default.
Mirroring all the branches is now working for the GitHub destination.
i pushed v0.10.18 and those features are now included.
I’d love to be able to use gickup copy from my local gitea/forgejo instance to github.