diff --git a/api/PasteMyst.Web/Services/VersionProvider.cs b/api/PasteMyst.Web/Services/VersionProvider.cs index 215788c..36cd276 100644 --- a/api/PasteMyst.Web/Services/VersionProvider.cs +++ b/api/PasteMyst.Web/Services/VersionProvider.cs @@ -12,10 +12,10 @@ public string GetVersion() // If we've already calculated the version, return it if (_version is not null) return _version; - + // Otherwise, get the version information from the .git folder in the repository - var repoPath = "../"; - if (!Repository.IsValid("../")) + var repoPath = "../../"; + if (!Repository.IsValid("../../")) { repoPath = "."; } @@ -30,4 +30,4 @@ public string GetVersion() return _version; } -} \ No newline at end of file +}