question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support mirror clone

See original GitHub issue

Hi,

I want a choose that can clone repository with --mirror. Maybe this one not supported by libgit2 yet.

https://github.com/libgit2/libgit2/blob/5bfead1dba919f6b47f52da675ea94407e8baf49/include/git2/clone.h#L48-L58

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Reactions:1
  • Comments:14 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
anrichtercommented, Feb 27, 2019

It seems, from this series of comments, that someone was able to implement a clone --mirror and a push --mirror

Could someone share example code for that implementation?

Hi,

use it in my GitLabToGitHub migration tool. You can find an example for clone --mirror in my GitLabConnector class. And an axample for push --mirror is locatet in the GitHubConnector class.

Hope that helps.

Greetings Andreas

1reaction
longlostbrocommented, Sep 18, 2018

It seems, from this series of comments, that someone was able to implement a clone --mirror and a push --mirror

Could someone share example code for that implementation?

BACKGROUND

I’m trying to replace very rudimentary batch script with a c# application to handle migration of repositories from one server to another

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mirror with Clone Tool - Adobe Support Community
I always clone to a new empty layer on top of the layer I'm cloning from. So I don't destroy the layer I'm...
Read more >
sjtug/mirror-clone: All-in-one mirror utility for ...
mirror -clone is originally built for setting up a mirror repo on SJTU S3 ... Use ./mirror-clone --help to view current commands and...
Read more >
What's the difference between git clone --mirror and ...
The git clone help page has this to say about --mirror : Set up a mirror of the remote repository. This implies --bare...
Read more >
Mirror/clone my iPhone contents
Mirror /clone my iPhone contents. Welcome to Apple Support Community. A forum where Apple customers help each other with their products. Get ...
Read more >
Question about masteries: specifically mirror and clone
If I then use mirror and/or clone, I'm a troll. But, does the extra damage from the mirror/clone also count towards the goblin...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found