Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit b96d20f

Browse files
Making sure the parent directory exists when copying portable git
1 parent ff3a3e8 commit b96d20f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/GitHub.Api/Installer/GitInstaller.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ public void SetupGitIfNeeded(ActionTask<NPath> onSuccess, ITask onFailure)
124124
Logger.Trace("Moving tempDirectory:\"{0}\" to extractTarget:\"{1}\"", gitExtractPath,
125125
installDetails.GitInstallPath);
126126

127+
installDetails.GitInstallPath.EnsureParentDirectoryExists();
127128
gitExtractPath.Move(installDetails.GitInstallPath);
128129

129130
Logger.Trace("Deleting tempZipPath:\"{0}\"", tempZipPath);

0 commit comments

Comments
 (0)