final Map<String, String> params = getQueryParams( uri );
syncRepository( fileSystem.gitRepo(), fileSystem.getCredential(), params.get( "sync" ), hasForceFlag( uri ) );
final ObjectId newHead = JGitUtil.getTreeRefObjectId( fileSystem.gitRepo().getRepository(), treeRef );
notifyDiffs( fileSystem, treeRef, "<system>", "<system>", "", oldHead, newHead );
} catch ( final Exception ex ) {
throw new IOException( ex );
}
}
if ( hasPushFlag( uri ) ) {
try {
final Map<String, String> params = getQueryParams( uri );
pushRepository( fileSystem.gitRepo(), fileSystem.getCredential(), params.get( "push" ), hasForceFlag( uri ) );
} catch ( final Exception ex ) {
throw new IOException( ex );
}
}
return fileSystem;
}