Skip to content

Commit

Permalink
fix: version provider using wrong path
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeMyst committed Jan 30, 2025
1 parent 1736ea8 commit 06c0072
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions api/PasteMyst.Web/Services/VersionProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ".";
}
Expand All @@ -30,4 +30,4 @@ public string GetVersion()

return _version;
}
}
}

0 comments on commit 06c0072

Please sign in to comment.