Skip to content
This repository was archived by the owner on Jul 3, 2020. It is now read-only.

Commit bc60b74

Browse files
fix
1 parent b33b3c9 commit bc60b74

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

EhTagClient/RepoClient.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ private set
3939

4040
public void Init()
4141
{
42-
if (Directory.Exists(Consts.REPO_PATH))
42+
if (Directory.Exists(Path.Join(Consts.REPO_PATH, ".git")))
4343
{
4444
_GitPath = Repository.Discover(Consts.REPO_PATH);
4545
Repo = new Repository(_GitPath);
@@ -76,7 +76,7 @@ public void Pull()
7676
Commands.Fetch(Repo, remote.Name, refSpecs, new FetchOptions
7777
{
7878
CredentialsProvider = CredentialsProvider
79-
}, "");
79+
}, "");
8080
var originMaster = Repo.Branches["origin/master"];
8181
Repo.Reset(ResetMode.Hard, originMaster.Tip);
8282
}

0 commit comments

Comments
 (0)