Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 128eadf

Browse files
committed
use the local path instead of returning the head sha
1 parent dab4b97 commit 128eadf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitHub.Exports/Models/LocalRepositoryModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public async Task<UriString> GenerateUrl(string path = null, int startLine = -1,
6666
if (CloneUrl == null)
6767
return null;
6868

69-
var sha = path != null ? await GitService.GitServiceHelper.GetLatestPushedSha(path) : HeadSha;
69+
var sha = await GitService.GitServiceHelper.GetLatestPushedSha(path ?? LocalPath);
7070
// this also incidentally checks whether the repo has a valid LocalPath
7171
if (String.IsNullOrEmpty(sha))
7272
return CloneUrl.ToRepositoryUrl().AbsoluteUri;

0 commit comments

Comments
 (0)