mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-01-31 09:01:13 +03:00
fix: do not use RepositoryUrl from GitInfo (#287)
GitInfo's `RepositoryUrl` string depends on origin URL, which is unvalidated user input that isn't even guaranteed to exist. This can cause issues that are almost impossible to debug Closes #281
This commit is contained in:
parent
a9509deb1c
commit
844615e8bf
1 changed files with 5 additions and 5 deletions
|
@ -2,15 +2,15 @@
|
|||
|
||||
public static class BuildInfo
|
||||
{
|
||||
public static string RepositoryUrl => ThisAssembly.Git.RepositoryUrl;
|
||||
public const string RepositoryUrl = "https://github.com/TeamOctolings/Octobot";
|
||||
|
||||
public static string IssuesUrl => $"{RepositoryUrl}/issues";
|
||||
public const string IssuesUrl = $"{RepositoryUrl}/issues";
|
||||
|
||||
public static string WikiUrl => $"{RepositoryUrl}/wiki";
|
||||
public const string WikiUrl = $"{RepositoryUrl}/wiki";
|
||||
|
||||
private static string Commit => ThisAssembly.Git.Commit;
|
||||
private const string Commit = ThisAssembly.Git.Commit;
|
||||
|
||||
private static string Branch => ThisAssembly.Git.Branch;
|
||||
private const string Branch = ThisAssembly.Git.Branch;
|
||||
|
||||
public static bool IsDirty => ThisAssembly.Git.IsDirty;
|
||||
|
||||
|
|
Loading…
Reference in a new issue