mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-21 02:15:00 +00:00
fix: saving revision file may crash this app if target dir is not exists (#1434)
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
af2b644792
commit
dcd8effc32
1 changed files with 4 additions and 0 deletions
|
@ -10,6 +10,10 @@ namespace SourceGit.Commands
|
|||
{
|
||||
public static void Run(string repo, string revision, string file, string saveTo)
|
||||
{
|
||||
var dir = Path.GetDirectoryName(saveTo);
|
||||
if (!Directory.Exists(dir))
|
||||
Directory.CreateDirectory(dir);
|
||||
|
||||
var isLFSFiltered = new IsLFSFiltered(repo, revision, file).Result();
|
||||
if (isLFSFiltered)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue