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

Commit c21f18c

Browse files
Merge branch 'init-error' into github-enterprise
2 parents 5615c0f + be41884 commit c21f18c

File tree

4 files changed

+17
-15
lines changed

4 files changed

+17
-15
lines changed

common/SolutionInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ namespace System
3232
{
3333
internal static class AssemblyVersionInformation {
3434
// this is for the AssemblyVersion and AssemblyVersion attributes, which can't handle alphanumerics
35-
internal const string VersionForAssembly = "1.1.0";
35+
internal const string VersionForAssembly = "1.1.1";
3636
// Actual real version
37-
internal const string Version = "1.1.0";
37+
internal const string Version = "1.1.1";
3838
}
3939
}

src/GitHub.Api/Installer/CopyHelper.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,23 @@ public static class CopyHelper
1212

1313
public static void Copy(NPath fromPath, NPath toPath)
1414
{
15+
Logger.Trace("Copying from " + fromPath + " to " + toPath + ".");
16+
1517
try
1618
{
1719
CopyFolder(fromPath, toPath);
1820
}
1921
catch (Exception ex1)
2022
{
21-
Logger.Warning(ex1, "Error copying from " + fromPath + " to " + toPath + ". Attempting to copy contents.");
23+
Logger.Warning(ex1, "Error copying.");
2224

2325
try
2426
{
2527
CopyFolderContents(fromPath, toPath);
2628
}
2729
catch (Exception ex2)
2830
{
29-
Logger.Error(ex2, "Error copying from " + fromPath + " to " + toPath + ".");
31+
Logger.Error(ex1, "Error copying contents.");
3032
throw;
3133
}
3234
}
@@ -45,8 +47,7 @@ public static void CopyFolder(NPath fromPath, NPath toPath)
4547

4648
public static void CopyFolderContents(NPath fromPath, NPath toPath)
4749
{
48-
Logger.Trace("CopyFolderContents fromPath: {0} toPath:{1}", fromPath.ToString(), toPath.ToString());
49-
50+
Logger.Trace("CopyFolder Contents fromPath: {0} toPath:{1}", fromPath.ToString(), toPath.ToString());
5051
toPath.DeleteContents();
5152
fromPath.MoveFiles(toPath, true);
5253
}

src/GitHub.Api/Installer/GitInstaller.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -301,13 +301,13 @@ private GitInstallationState ExtractGit(GitInstallationState state)
301301
return true;
302302
});
303303
unzipTask.Progress(p => Progress.UpdateProgress(40 + (long)(20 * p.Percentage), 100, unzipTask.Message));
304-
var source = unzipTask.RunSynchronously();
304+
unzipTask.RunSynchronously();
305305
var target = state.GitInstallationPath;
306306
if (unzipTask.Successful)
307307
{
308-
Logger.Trace("Moving Git source:{0} target:{1}", source.ToString(), target.ToString());
308+
Logger.Trace("Moving Git source:{0} target:{1}", gitExtractPath.ToString(), target.ToString());
309309

310-
CopyHelper.Copy(source, target);
310+
CopyHelper.Copy(gitExtractPath, target);
311311

312312
state.GitIsValid = true;
313313

@@ -327,13 +327,13 @@ private GitInstallationState ExtractGit(GitInstallationState state)
327327
return true;
328328
});
329329
unzipTask.Progress(p => Progress.UpdateProgress(60 + (long)(20 * p.Percentage), 100, unzipTask.Message));
330-
var source = unzipTask.RunSynchronously();
330+
unzipTask.RunSynchronously();
331331
var target = state.GitLfsInstallationPath;
332332
if (unzipTask.Successful)
333333
{
334-
Logger.Trace("Moving GitLFS source:{0} target:{1}", source.ToString(), target.ToString());
334+
Logger.Trace("Moving GitLFS source:{0} target:{1}", gitLfsExtractPath.ToString(), target.ToString());
335335

336-
CopyHelper.Copy(source, target);
336+
CopyHelper.Copy(gitLfsExtractPath, target);
337337

338338
state.GitLfsIsValid = true;
339339
}

src/GitHub.Api/Installer/OctorunInstaller.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,13 @@ public NPath SetupOctorunIfNeeded()
3333

3434
GrabZipFromResources();
3535

36-
var tempZipExtractPath = NPath.CreateTempDirectory("octorun_extract_archive_path");
36+
var extractPath = NPath.CreateTempDirectory("octorun_extract_archive_path");
3737
var unzipTask = new UnzipTask(taskManager.Token, installDetails.ZipFile,
38-
tempZipExtractPath, sharpZipLibHelper,
38+
extractPath, sharpZipLibHelper,
3939
fileSystem)
4040
.Catch(e => { Logger.Error(e, "Error extracting octorun"); return true; });
41-
var extractPath = unzipTask.RunSynchronously();
41+
unzipTask.RunSynchronously();
42+
4243
if (unzipTask.Successful)
4344
path = MoveOctorun(extractPath.Combine("octorun"));
4445
return path;

0 commit comments

Comments
 (0)