[BUILDTOOLS-596] Won't work with PortableGit Created: 23/Jun/21  Updated: 02/Jul/21  Resolved: 02/Jul/21

Status: Resolved
Project: BuildTools
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Alexandr Kotenko Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: None
Environment:

Windows 10 x64bit

JDK 16.0.1


Version: git-BuildTools-e03ad1c-130 (#130)
Guidelines Read: Yes

 Description   

BuildTools fail to start outside Git-bash (windows commandline for example).

Loading BuildTools version: git-BuildTools-e03ad1c-130 (#130)
Java Version: Java 16
Current Path: C:\WINDOWS\system32\.
*** Could not find PortableGit installation, downloading. ***
Starting download of https://github.com/git-for-windows/git/releases/download/v2.30.0.windows.1/PortableGit-2.30.0-64-bit.7z.exe
Downloaded file: PortableGit-2.30.0-64-bit\PortableGit-2.30.0-64-bit.7z.exe with hash: 6497e30fc6141e3c27af6cc3a081861043a7666dd54f395d47184e8eb75f5d61
Extracting downloaded git install
Exception in thread "main" java.lang.RuntimeException: Error running command, return status !=0: [C:\WINDOWS\system32\cmd.exe, /D, /C, C:\WINDOWS\system32\PortableGit-2.30.0-64-bit\PortableGit-2.30.0-64-bit.7z.exe, -y, -gm2, -nr]
        at org.spigotmc.builder.Builder.runProcess0(Builder.java:919)
        at org.spigotmc.builder.Builder.runProcess(Builder.java:850)
        at org.spigotmc.builder.Builder.main(Builder.java:220)
        at org.spigotmc.builder.Bootstrap.main(Bootstrap.java:27)


 Comments   
Comment by Bjarne Koll [ 23/Jun/21 ]

Cannot reproduce.
Concerning you are running this in your system32 directory (btw why ???) you might be missing permissions ?
Can you try to reproduce this in a reasonable folder on your system (that maybe isn't the system32 folder).

Generated at Tue Dec 16 23:20:22 UTC 2025 using Jira 10.3.15#10030015-sha1:909cc43d292ca09e774c1a243d9819be3f2628cd.