Push equivalent to clone mirror? #927
Labels
No Label
bug
duplicate
enhancement
invalid
question
up for grabs
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: jcarr/git2go#927
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Despite looking at the godocs, the tests and the source, I can't seem to figure out the correction
PushOptions
for the opposite of a mirror clone, i.e. push with the mirror options. Ideally, for my special use case with force.I'm trying to clone from one server and push to another, using the mirror option. So, I:
This is using https, not ssh, if it matters.
On that notice, more examples would be very nice (looking at unit tests isn't quite the sames thing).
At this time, my somewhat naive first implementation, after poring through the source looks like this. However there are a number of issues that I've listed with inline comments.
Note: this is built on MacOS.
libgit2
,libssh2
andopenssl
are installed via Homebrew. SSL certificates and CA are all installed as part of the corporate build. HTTPS pushes into Git are authenticated via access token.