mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 20:24:59 +00:00
fix: bad output file name while creating archive by tag
This commit is contained in:
parent
87e7b792bb
commit
7a02854e2d
1 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@ namespace SourceGit.ViewModels
|
||||||
{
|
{
|
||||||
_repo = repo;
|
_repo = repo;
|
||||||
_revision = branch.Head;
|
_revision = branch.Head;
|
||||||
_saveFile = $"archive-{Path.GetFileNameWithoutExtension(branch.Name)}.zip";
|
_saveFile = $"archive-{Path.GetFileName(branch.Name)}.zip";
|
||||||
BasedOn = branch;
|
BasedOn = branch;
|
||||||
View = new Views.Archive() { DataContext = this };
|
View = new Views.Archive() { DataContext = this };
|
||||||
}
|
}
|
||||||
|
@ -41,7 +41,7 @@ namespace SourceGit.ViewModels
|
||||||
{
|
{
|
||||||
_repo = repo;
|
_repo = repo;
|
||||||
_revision = tag.SHA;
|
_revision = tag.SHA;
|
||||||
_saveFile = $"archive-{tag.Name}.zip";
|
_saveFile = $"archive-{Path.GetFileName(tag.Name)}.zip";
|
||||||
BasedOn = tag;
|
BasedOn = tag;
|
||||||
View = new Views.Archive() { DataContext = this };
|
View = new Views.Archive() { DataContext = this };
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue