Do a hard reset instead of detached head checkout.

This commit is contained in:
md_5 2015-01-21 08:34:58 +11:00
parent d6948df6b9
commit 3ac4b16c3d

View file

@ -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();