Adding self.repository.lock_read() to RemoteBranch.lock_read() does fix this problem, but causes a large number of test failures. So it's not completely trivial to fix.
Adding self.repository .lock_read( ) to RemoteBranch. lock_read( ) does fix this problem, but causes a large number of test failures. So it's not completely trivial to fix.