mirror of
https://hub.spigotmc.org/stash/scm/spigot/buildtools.git
synced 2025-08-31 22:29:10 +00:00
Do a hard reset instead of detached head checkout.
This commit is contained in:
parent
d6948df6b9
commit
3ac4b16c3d
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue