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.

Passing CloneOptions

See original GitHub issue

I tried using a javascript object, and various combinations of arrays and strings.

I then tried instantiating git.CloneOptions, but it was complaining about needing git_clone_options. There appears to be a libgit2 macro GIT_CLONE_OPTIONS_INIT but I’ve no idea how to call it.

Any help / pointers would be great, thank you.

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:17 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
webjaycommented, May 14, 2014

+1 for mirror

1reaction
jaypozocommented, Apr 13, 2014

Would like to be able to pass the --mirror option to clone. +1 for getting this to work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

CloneOption (Git plugin 4.14.3 API) - Jenkins Javadoc
The fix for JENKINS-31393 exposed JENKINS-36507 which seems to show that the Gerrit Plugin assumes all references are fetched, even though it only...
Read more >
git-clone Documentation - Git
clone.defaultRemoteName. The name of the remote to create when cloning a repository. Defaults to origin , and can be overridden by passing the...
Read more >
Operation::CloneOptions Class Reference - MLIR
Class encompassing various options related to cloning an operation. Users of this class should pass it to Operation's 'clone' methods. Current options include:....
Read more >
Using NodeGit CloneOptions to clone a branch - Stack Overflow
I am trying to work out how to pass clone options to the nodegit clone method. git. Repo. clone(URL, path, CloneOptions, callback);
Read more >
CloneOptions Class (Microsoft.TeamFoundation.TestManagement ...
Public property, OverrideFieldName, The name of any Field that must be overridden with the supplied during Clone operation. You can pass the Field's ......
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