Changeset 1876


Ignore:
Timestamp:
Dec 24, 2008, 5:46:12 PM (16 years ago)
Author:
broder
Message:

As a result of Greg's and my git-svn based moves, many of the package
directories ended up with a commit where every file in the repo was
committed. Punt that repo from the newly revised history.

File:
1 edited

Legend:

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

    r1875 r1876  
    2525        subprocess.check_call(['git', 'config', 'core.bare', 'true'],
    2626                              cwd='%s.git' % pkg)
     27       
     28    # Some of these repos have a rev where everything was deleted
     29    # as a result of the move. We don't want that rev to exist.
     30    p = subprocess.Popen(['git', 'ls-files'],
     31                         cwd='%s.git' % pkg,
     32                         stdout=subprocess.PIPE)
     33    p.wait()
     34    if len(p.stdout.read()) == 0:
     35        subprocess.check_call(['git', 'reset', 'HEAD^'],
     36                              cwd='%s.git' % pkg)
    2737
    2838def cloneAllPackages(base):
Note: See TracChangeset for help on using the changeset viewer.