Test 'nogit sync' on file open