Skip to content

Commit

Permalink
fix #23; Unable to add more than one package from url on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mob-sakai committed Feb 22, 2019
1 parent 0bc1018 commit 1677482
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Editor/Scripts/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ public static WaitWhile GetRefs (string repoUrl, List<string> result, Action cal
public static WaitWhile GetPackageJson (string repoUrl, string branch, Action<string> callback)
{
const string kPath = "Temp/UpmGit";
if (Directory.Exists (kPath))
Directory.Delete (kPath, true);
FileUtil.DeleteFileOrDirectory (kPath);

string args = string.Format ("clone --depth=1 --branch {0} --single-branch {1} {2}", branch, repoUrl, kPath);
return ExecuteGitCommand (args, (_, __) => callback (PackageJsonHelper.GetPackageName (kPath)));
Expand Down

0 comments on commit 1677482

Please sign in to comment.