fix(web): resolve path separator mismatch in git commit hash parsing, and update fallback release values
This commit is contained in:
@@ -33,7 +33,7 @@ public class IndexModel : PageModel
|
||||
}
|
||||
|
||||
var dateStr = DateTime.UtcNow.AddHours(9).ToString("yyyyMMdd");
|
||||
string gitHash = "a9986fb";
|
||||
string gitHash = "c6f269e";
|
||||
try
|
||||
{
|
||||
var baseDir = AppContext.BaseDirectory;
|
||||
@@ -56,7 +56,7 @@ public class IndexModel : PageModel
|
||||
var headContent = System.IO.File.ReadAllText(headPath).Trim();
|
||||
if (headContent.StartsWith("ref:"))
|
||||
{
|
||||
var refPath = Path.Combine(repoRoot, ".git", headContent.Substring(4).Trim());
|
||||
var refPath = Path.Combine(repoRoot, ".git", headContent.Substring(4).Trim().Replace('/', Path.DirectorySeparatorChar));
|
||||
if (System.IO.File.Exists(refPath))
|
||||
{
|
||||
var fullHash = System.IO.File.ReadAllText(refPath).Trim();
|
||||
@@ -73,7 +73,7 @@ public class IndexModel : PageModel
|
||||
}
|
||||
catch {}
|
||||
|
||||
int runCount = 14;
|
||||
int runCount = 11;
|
||||
return $"quant_{dateStr}.{runCount}.{gitHash}";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user