Skip to content

Commit 7a02854

Browse files
committed
fix: bad output file name while creating archive by tag
1 parent 87e7b79 commit 7a02854

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ViewModels/Archive.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public Archive(Repository repo, Models.Branch branch)
2323
{
2424
_repo = repo;
2525
_revision = branch.Head;
26-
_saveFile = $"archive-{Path.GetFileNameWithoutExtension(branch.Name)}.zip";
26+
_saveFile = $"archive-{Path.GetFileName(branch.Name)}.zip";
2727
BasedOn = branch;
2828
View = new Views.Archive() { DataContext = this };
2929
}
@@ -41,7 +41,7 @@ public Archive(Repository repo, Models.Tag tag)
4141
{
4242
_repo = repo;
4343
_revision = tag.SHA;
44-
_saveFile = $"archive-{tag.Name}.zip";
44+
_saveFile = $"archive-{Path.GetFileName(tag.Name)}.zip";
4545
BasedOn = tag;
4646
View = new Views.Archive() { DataContext = this };
4747
}

0 commit comments

Comments
 (0)