Sowiarz
Sowiarz

Reputation: 1081

Git pull in application. Without using batch file. LibGit2Sharp

I want to git pull when my apllication start in folder. After that I take all dlls from this directory.

C:\TESTS\front-tests

I do not know how to implement this problem, so sorry that I do not have code. I asking for simple code of pull request.

Upvotes: 0

Views: 245

Answers (1)

nulltoken
nulltoken

Reputation: 67659

From you're question, it looks like you're after the repo.Network.Pull() method from LibGit2Sharp.

Basically, Pull automatically performs a Fetch (retrieving the new commits from the upstream repository) and a Merge. As such, the method accepts a PullOptions optional parameter which allows one to tweak the process (see PullOptions, FetchOptions and MergeOptions).

In order to get started, one may take a look at the Pull() unit tests in NetworkFixture.cs.

Upvotes: 2

Related Questions