Commits
Doc authored and md_5 committed 6562f297cf9
181 181 | } |
182 182 | } |
183 183 | |
184 184 | try |
185 185 | { |
186 186 | runProcess( CWD, "sh", "-c", "exit" ); |
187 187 | } catch ( Exception ex ) |
188 188 | { |
189 189 | if ( IS_WINDOWS ) |
190 190 | { |
191 - | String gitVersion = "PortableGit-2.30.0-" + ( System.getProperty( "os.arch" ).endsWith( "64" ) ? "64" : "32" ) + "-bit"; |
192 - | // https://github.com/git-for-windows/git/releases/tag/v2.30.0.windows.1 |
193 - | String gitHash = System.getProperty( "os.arch" ).endsWith( "64" ) ? "6497e30fc6141e3c27af6cc3a081861043a7666dd54f395d47184e8eb75f5d61" : "b3768c64b6afa082043659c56acb4c3483df6b6e884fdc7e3c769f7e7e99a3a8"; |
191 + | String gitVersion = "PortableGit-2.45.2-" + ( System.getProperty( "os.arch" ).endsWith( "64" ) ? "64" : "32" ) + "-bit"; |
192 + | // https://github.com/git-for-windows/git/releases/tag/v2.45.2.windows.1 |
193 + | String gitHash = System.getProperty( "os.arch" ).endsWith( "64" ) ? "851a15074dea6b272785b2a2a4697a72970256de2afe7b8e4a9c5e168c27ccdd" : "cfea9e414567d0c59c75ccc5a0e58feeef4dcfc0ea8bfd76efb5e4e22813f5d0"; |
194 194 | msysDir = new File( gitVersion, "PortableGit" ); |
195 195 | |
196 196 | if ( !msysDir.isDirectory() ) |
197 197 | { |
198 198 | System.out.println( "*** Could not find PortableGit installation, downloading. ***" ); |
199 199 | |
200 200 | String gitName = gitVersion + ".7z.exe"; |
201 201 | File gitInstall = new File( gitVersion, gitName ); |
202 202 | gitInstall.deleteOnExit(); |
203 203 | gitInstall.getParentFile().mkdirs(); |
204 204 | |
205 205 | if ( !gitInstall.exists() ) |
206 206 | { |
207 - | download( "https://github.com/git-for-windows/git/releases/download/v2.30.0.windows.1/" + gitName, gitInstall, HashFormat.SHA256, gitHash ); |
207 + | download( "https://github.com/git-for-windows/git/releases/download/v2.45.2.windows.1/" + gitName, gitInstall, HashFormat.SHA256, gitHash ); |
208 208 | } |
209 209 | |
210 210 | System.out.println( "Extracting downloaded git install" ); |
211 211 | // yes to all, silent, don't run. Only -y seems to work |
212 212 | runProcess( gitInstall.getParentFile(), gitInstall.getAbsolutePath(), "-y", "-gm2", "-nr" ); |
213 213 | |
214 214 | gitInstall.delete(); |
215 215 | } |
216 216 | |
217 217 | System.out.println( "*** Using downloaded git " + msysDir + " ***" ); |