Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Commit

Permalink
Don't fail on remote git repositories (#701)
Browse files Browse the repository at this point in the history
  • Loading branch information
skolima authored and MarcBruins committed Apr 4, 2019
1 parent 7d7394c commit 8f33869
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NuKeeper/Engine/GitRepositoryEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public async Task<int> Run(RepositorySettings repository,
settings.WorkingFolder = folder;
}

if (!string.IsNullOrEmpty(repository.RemoteInfo.BranchName))
if (!string.IsNullOrEmpty(repository.RemoteInfo?.BranchName))
{
repositoryData.DefaultBranch = repository.RemoteInfo.BranchName;
}
Expand Down

0 comments on commit 8f33869

Please sign in to comment.