def check_pull(self, bare):
with TemporaryDirectory() as directory:<EOL><INDENT>source = self.get_instance(local=os.path.join(directory, '<STR_LIT:source>'), bare=False)<EOL>target = self.get_instance(local=os.path.join(directory, '<STR_LIT:target>'), bare=bare)<EOL>self.create_initial_commit(source)<EOL>initial_commit = source.find_revision_id()<EOL>target.create()<EOL>target.pull(remote=source.local)<EOL>assert target.find_revision_id() == initial_commit<EOL><DEDENT>
Test pulling of changes from another repository.