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

Commit 3b1e908

Browse files
shanaAndreia Gaita
authored andcommitted
Use local git zips when we're in a debug build
1 parent cb2ab5d commit 3b1e908

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/GitHub.Api/Installer/GitInstaller.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,14 @@ public GitInstallationState SetupGitIfNeeded(GitInstallationState state = null)
5555
}
5656

5757
state = VerifyZipFiles(state);
58+
// on developer builds, prefer local zips over downloading
59+
#if DEVELOPER_BUILD
60+
state = GrabZipFromResourcesIfNeeded(state);
61+
state = GetZipsIfNeeded(state);
62+
#else
5863
state = GetZipsIfNeeded(state);
5964
state = GrabZipFromResourcesIfNeeded(state);
65+
#endif
6066
state = ExtractGit(state);
6167

6268
// if installing from zip failed (internet down maybe?), try to find a usable system git

0 commit comments

Comments
 (0)