Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Commit

Permalink
Added check in GitFetch() for valid repo
Browse files Browse the repository at this point in the history
  • Loading branch information
mbos committed Oct 23, 2015
1 parent 14fe51e commit e172b42
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Pass4Win/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -814,8 +814,13 @@ public bool GitFetch()
if (Cfg["UseGitRemote"] == true && this.gitRepoOffline == false)
{
toolStripOffline.Visible = false;

if (!Repository.IsValid(Cfg["PassDirectory"]))
return false;

using (var repo = new Repository(Cfg["PassDirectory"]))
{

var signature = new Signature("pass4win", "[email protected]",
new DateTimeOffset(2011, 06, 16, 10, 58, 27, TimeSpan.FromHours(2)));
var fetchOptions = new FetchOptions
Expand Down

0 comments on commit e172b42

Please sign in to comment.