Changeset 1869 for trunk/scripts


Ignore:
Timestamp:
Dec 22, 2008, 2:19:31 AM (16 years ago)
Author:
broder
Message:

Make the git checkout a bare repo, because git-svn won't do that.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/git-migration/git-migrate

    r1868 r1869  
    33import sys
    44import subprocess
     5import shutil
    56
    67def clonePackage(base, pkg):
     
    910    subprocess.check_call(['git', 'svn', 'clone', '--no-follow-parent', '%s/packages/%s' % (base, pkg)],
    1011                    stdout=subprocess.PIPE)
     12   
     13    # Then make the repository bare, because git-svn can't do this
     14    shutil.move('%s/.git' % pkg, '%s.git' % pkg)
     15    shutil.rmtree('%s' % pkg)
     16    subprocess.check_call(['git', 'config', 'core.bare', 'true'], cwd='%s.git' % pkg)
    1117
    1218def cloneAllPackages(base):
Note: See TracChangeset for help on using the changeset viewer.