From 3ac4b16c3d3c42341bcdab9991f4e0b4b3dc037b Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 21 Jan 2015 08:34:58 +1100 Subject: Do a hard reset instead of detached head checkout. --- src/main/java/org/spigotmc/builder/Builder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/spigotmc/builder/Builder.java b/src/main/java/org/spigotmc/builder/Builder.java index 41ca16c..fdff65d 100644 --- a/src/main/java/org/spigotmc/builder/Builder.java +++ b/src/main/java/org/spigotmc/builder/Builder.java @@ -427,7 +427,7 @@ public class Builder System.out.println( "Successfully fetched updates!" ); - repo.checkout().setName( ref ).call(); + repo.reset().setRef( ref ).setMode( ResetCommand.ResetType.HARD).call(); if ( ref.equals( "master" ) ) { repo.reset().setRef( "origin/master" ).setMode( ResetCommand.ResetType.HARD ).call(); -- cgit v1.2.3