def get_source_and_target(self, directory):
source = self.get_instance(bare=False, local=os.path.join(directory, '<STR_LIT:source>'))<EOL>target = self.get_instance(bare=True, local=os.path.join(directory, '<STR_LIT:target>'), remote=source.local)<EOL>self.create_initial_commit(source)<EOL>target.create()<EOL>return source, target<EOL>
Shortcut to create two repositories where one is a clone of the other.