diff options
author | md_5 <git@md-5.net> | 2015-01-21 08:34:58 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2015-01-21 08:34:58 +1100 |
commit | 3ac4b16c3d3c42341bcdab9991f4e0b4b3dc037b (patch) | |
tree | 06c783ed30e55db64779015dcf54c3432431e3d8 | |
parent | d6948df6b90144d99000360f76ae2997e2dd3de4 (diff) | |
download | buildtools-3ac4b16c3d3c42341bcdab9991f4e0b4b3dc037b.tar buildtools-3ac4b16c3d3c42341bcdab9991f4e0b4b3dc037b.tar.gz buildtools-3ac4b16c3d3c42341bcdab9991f4e0b4b3dc037b.tar.lz buildtools-3ac4b16c3d3c42341bcdab9991f4e0b4b3dc037b.tar.xz buildtools-3ac4b16c3d3c42341bcdab9991f4e0b4b3dc037b.zip |
Do a hard reset instead of detached head checkout.
-rw-r--r-- | src/main/java/org/spigotmc/builder/Builder.java | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |