def prepare_repository(self, directory, tag_name, number_of_commits_since=0, file_name="test.txt", testomation_branch=True):
        os.chdir(directory)
        check_call(['git', 'init'], stdout=PIPE, stdin=PIPE)
        
        # configure me
        check_call(['git', 'config', 'user.email', 'testcase@example.com'])
        check_call(['git', 'config', 'user.name', 'Testing Testorz'])

        # create a commit
        f = open(os.path.join(directory, file_name), 'wb')
        f.write("test test")
        f.close()

        check_call(['git', 'add', '*'])
        check_call(['git', 'commit', '-a', '-m', '"dummy"'], stdout=PIPE, stdin=PIPE)
        check_call(['git', 'tag', '-a', '-m', '"dummy"', tag_name], stdout=PIPE, stdin=PIPE)

        if number_of_commits_since > 0:
            for i in xrange(0, number_of_commits_since):
                f = open(os.path.join(directory, file_name), 'wb')
                for n in xrange(0, i):
                    f.write("test\n")
                f.close()
                check_call(['git', 'add', '*'])
                check_call(['git', 'commit', '-a', '-m', '%s commit since' % i], stdout=PIPE, stdin=PIPE)

        if testomation_branch:
            check_call(['git', 'checkout', '-b', 'testomation'], stdout=PIPE, stderr=PIPE)

            f = open(os.path.join(directory, file_name), 'wb')
            f.write("testomation test\n")
            f.close()
            check_call(['git', 'add', '*'])
            check_call(['git', 'commit', '-a', '-m', 'testomation test'], stdout=PIPE, stderr=PIPE)

            # backward compatibility: go back to master
            check_call(['git', 'checkout', 'master'], stdout=PIPE, stderr=PIPE)
Return the details of the selected metadata type.
dataset/ETHPy150Open ella/citools/tests/test_versioning.py/TestMetaRepository.prepare_repository--crossover with--dataset/ETHPy150Open mayan-edms/mayan-edms/mayan/apps/metadata/api_views.py/APIMetadataTypeView.get