fix: bad output file name while creating archive by tag
Some checks failed
Continuous Integration / Build (push) Waiting to run
Continuous Integration / Prepare version string (push) Waiting to run
Continuous Integration / Package (push) Blocked by required conditions
Localization Check / localization-check (push) Has been cancelled

This commit is contained in:
leo 2024-12-31 11:19:05 +08:00
parent 87e7b792bb
commit 7a02854e2d
No known key found for this signature in database

View file

@ -23,7 +23,7 @@ namespace SourceGit.ViewModels
{
_repo = repo;
_revision = branch.Head;
_saveFile = $"archive-{Path.GetFileNameWithoutExtension(branch.Name)}.zip";
_saveFile = $"archive-{Path.GetFileName(branch.Name)}.zip";
BasedOn = branch;
View = new Views.Archive() { DataContext = this };
}
@ -41,7 +41,7 @@ namespace SourceGit.ViewModels
{
_repo = repo;
_revision = tag.SHA;
_saveFile = $"archive-{tag.Name}.zip";
_saveFile = $"archive-{Path.GetFileName(tag.Name)}.zip";
BasedOn = tag;
View = new Views.Archive() { DataContext = this };
}