[BUILDTOOLS-152] BuildTools 45 Not Loading .Jar(s) Created: 28/Aug/15  Updated: 29/Aug/15  Resolved: 29/Aug/15

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

Type: Bug Priority: Major
Reporter: Brian Kyriakos Assignee: Unassigned
Resolution: Done Votes: 0
Labels: BuildTools, spigot
Environment:

Windows 64-Bit
Windows 10
Git.Bash



 Description   

I have watched the video that's provided on [url=https://www.spigotmc.org/wiki/spigot-installation/] Spigot Installation For BuildTools 45[/url] And when I am to run BuildTools everything works, besides the .Jar(s)

At the end of the Command Prompt I get this Error

Cloning into 'Spigot-Server'...
done.
Resetting Spigot-Server to CraftBukkit...
error: Could not remove config section 'remote.upstream'
HEAD is now at f371f00 CraftBukkit $ Fri Aug 28 11:08:50 EDT 2015
  Applying patches to Spigot-Server...
Resolve operation not in progress, we are not resuming.
Applying: POM Changes
Applying: mc-dev imports
Applying: Skeleton API Implementations
Applying: Obfuscation Helpers
fatal: sha1 information is lacking or useless (src/main/java/net/minecraft/server/MinecraftServer.java).
Repository lacks necessary blobs to fall back on 3-way merge.
Cannot fall back to three-way merge.
Patch failed at 0004 Obfuscation Helpers
The copy of the patch that failed is found in:
   C:/Users/Brian/Desktop/spigot/Spigot/Spigot-Server/.git/rebase-apply/patch
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
  Something did not apply cleanly to Spigot-Server.
  Please review above details and finish the apply then
  save the changes with rebuildPatches.sh
Error compiling Spigot, are you running this jar via msysgit?
java.lang.RuntimeException: Error running command, return status !=0: [bash, applyPatches.sh]
        at org.spigotmc.builder.Builder.runProcess(Builder.java:517)
        at org.spigotmc.builder.Builder.main(Builder.java:400)
Press any key to continue . . .

From this [url=https://www.youtube.com/watch?t=230&v=ZdkEgMgbVGw]Video[/url] I am following exactly everything the author of the video does, but I get this error and he is not.

I am however running BuildTools.jar a bit different though. Instead of running it through bash I created a exe. and this is my code and it's only working this way.

@echo off
set startdir=%~dp0
set bashdir="C:\Program Files\Git\bin\bash.exe"
%bashdir% --login -i -c "java -jar ""%startdir%\BuildTools.jar"""
pause

I am confused on why I am getting the error. Help would greatly be appreciated.

Thank you



 Comments   
Comment by Brian Kyriakos [ 28/Aug/15 ]

Okay I got it to work! At first what I did was completely wipe Git on my computer and ran it, but it failed, because I did not remove the files it already generated. After that I reran BuildTools and it worked.

Thank you very much.

Comment by Akkarin [ 28/Aug/15 ]

Your error ("fatal: sha1 information is lacking or useless") is documented on the BuildTools wiki page (https://www.spigotmc.org/wiki/buildtools/#issues-and-common-concerns) and is caused by a misconfiguration of Git on Windows systems.

Generated at Mon Dec 15 03:23:41 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.