Changeset 1869 for trunk/scripts
- Timestamp:
- Dec 22, 2008, 2:19:31 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/git-migration/git-migrate
r1868 r1869 3 3 import sys 4 4 import subprocess 5 import shutil 5 6 6 7 def clonePackage(base, pkg): … … 9 10 subprocess.check_call(['git', 'svn', 'clone', '--no-follow-parent', '%s/packages/%s' % (base, pkg)], 10 11 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) 11 17 12 18 def cloneAllPackages(base):
Note: See TracChangeset
for help on using the changeset viewer.