Changeset 1896 for trunk/scripts/git-migration
- Timestamp:
- Dec 25, 2008, 1:41:50 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/git-migration/git-migrate
r1895 r1896 1 1 #!/usr/bin/python 2 2 3 import glob 3 4 import os 4 5 import sys … … 144 145 shutil.rmtree('%s.git' % merge[0]) 145 146 147 def cleanupRepos(): 148 for pkg in glob.glob('*.git'): 149 subprocess.check_call(['git', 'tag', '-d', 'base'], 150 cwd='%s' % pkg) 151 152 subprocess.check_call(['git', 'gc'], 153 cwd='%s' % pkg) 154 146 155 if __name__ == '__main__': 147 156 try: … … 152 161 cloneAllPackages(base) 153 162 mergeHistories() 163 cleanupRepos()
Note: See TracChangeset
for help on using the changeset viewer.