Changeset 1896 for trunk/scripts


Ignore:
Timestamp:
Dec 25, 2008, 1:41:50 AM (16 years ago)
Author:
broder
Message:

More cleanup.

File:
1 edited

Legend:

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

    r1895 r1896  
    11#!/usr/bin/python
    22
     3import glob
    34import os
    45import sys
     
    144145        shutil.rmtree('%s.git' % merge[0])
    145146
     147def 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
    146155if __name__ == '__main__':
    147156    try:
     
    152161    cloneAllPackages(base)
    153162    mergeHistories()
     163    cleanupRepos()
Note: See TracChangeset for help on using the changeset viewer.