One extra parenthesis here: `if( $remote_revision ) )`. Fixed it - make sure you pull my changes.