libgit2

git_submodule_clone

Version:

Perform the clone step for a newly created submodule.

This performs the necessary git_clone to setup a newly-created submodule.

Signature

int git_submodule_clone(git_repository **out, git_submodule *submodule, const git_submodule_update_options *opts);

Parameters

In
out

The newly created repository object. Optional.

In
submodule

The submodule currently waiting for its clone.

In
opts

The options to use.

Returns

int

0 on success, -1 on other errors (see git_clone).

Versions