- Timestamp:
- Dec 24, 2008, 5:46:12 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/git-migration/git-migrate
r1874 r1875 12 12 # Use --no-follow-parent because we're going to handle that with 13 13 # grafts. 14 subprocess.check_call(['git', 'svn', 'clone', '--no-follow-parent', 14 subprocess.check_call(['git', 'svn', 'clone', 15 '--no-follow-parent', 15 16 '-Aauthors', 16 17 '-q', 17 '--no-metadata', '%s/packages/%s' % (base, pkg)], 18 '--no-metadata', 19 '%s/packages/%s' % (base, pkg)], 18 20 stdout=subprocess.PIPE) 19 21 20 22 # Then make the repository bare, because git-svn can't do this 21 23 shutil.move('%s/.git' % pkg, '%s.git' % pkg) 22 shutil.rmtree('%s' % pkg) 23 subprocess.check_call(['git', 'config', 'core.bare', 'true'], cwd='%s.git' % pkg) 24 shutil.rmtree(pkg) 25 subprocess.check_call(['git', 'config', 'core.bare', 'true'], 26 cwd='%s.git' % pkg) 24 27 25 28 def cloneAllPackages(base):
Note: See TracChangeset
for help on using the changeset viewer.