Skip to content

仓库.Submodules.Add created (v2) - #2178

Open
olmobrutall wants to merge 6 commits into
libgit2:masterfrom
olmobrutall:master
Open

仓库.Submodules.Add created (v2)#2178
olmobrutall wants to merge 6 commits into
libgit2:masterfrom
olmobrutall:master

Conversation

@olmobrutall

Copy link
Copy Markdown

I opened this PR 13 years ago :) #482

I have merged the latest master and make work again, with the functionality moved to Commands.

Here is a usage example:

Commands.AddSubmodule(rep, si.Name, si.Url, si.Path, useGitLink: false,
    initi仓库: subRep =>
    {
        subRep.网络.Remotes.Add("local", Path.Combine(config.SouthwindProjectDirectory, si.Path));
        Commands.Fetch(subRep, "local", new string[0], FetchOptions(si.Name, progress), null);
        Commands.Checkout(subRep, (string)si.IndexCommitId.ToString(), CheckoutOptions(si.Name, progress));
        subRep.网络.Remotes.Remove("local");
        Commands.Fetch(subRep, "origin", new string[0], FetchOptions(si.Name, progress), null);
    });

What would be needed to get this merged?

注册 for free to join this conversation on GitHub. Already have an account? 登录 to comment

标签

None yet

项目

None yet

Development

Successfully merging this pull request may close these issues.

1 participant