~bzr/ubuntu/jaunty/dulwich/bzr-ppa

« back to all changes in this revision

Viewing changes to dulwich/tests/compat/utils.py

  • Committer: Max Bowsher
  • Date: 2011-04-13 01:39:14 UTC
  • Revision ID: maxb@f2s.com-20110413013914-yegdjh3kv99rm84z
Patch the testsuite to work with older git versions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
127
127
                               'repos', name)
128
128
    temp_repo_dir = os.path.join(temp_dir, name)
129
129
    export_file = open(export_path, 'rb')
130
 
    run_git_or_fail(['init', '--quiet', '--bare', temp_repo_dir])
 
130
    os.mkdir(temp_repo_dir)
 
131
    run_git_or_fail(['init', '--quiet', '--bare'], cwd=temp_repo_dir)
131
132
    run_git_or_fail(['fast-import'], input=export_file.read(),
132
133
                    cwd=temp_repo_dir)
133
134
    export_file.close()