Changeset 1898 for trunk


Ignore:
Timestamp:
Dec 25, 2008, 2:33:38 AM (16 years ago)
Author:
broder
Message:

Use filter-branch to correct the trunk/packages/$package/$package
setup from earlier in the repo history.

Location:
trunk/scripts/git-migration
Files:
1 added
1 edited

Legend:

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

    r1896 r1898  
    6161    if len(p.stdout.read()) == 0:
    6262        subprocess.check_call(['git', 'reset', '--soft', 'HEAD^'],
     63                              cwd='%s.git' % pkg)
     64   
     65    # Early in the project's history, there were a bunch of double
     66    # directory trees - i.e. the source was actually in
     67    # trunk/packages/$package/$package. Correct for that
     68    cwd = os.getcwd()
     69    os.environ['PACKAGE'] = pkg
     70    p = subprocess.check_call(['git', 'filter-branch',
     71                               '--commit-filter', '%s "$@"' % os.path.join(cwd, 'filter-subdirs'),
     72                               '--tag-name-filter', 'cat',
     73                               '--',
     74                               '--all'],
    6375                              cwd='%s.git' % pkg)
    6476   
Note: See TracChangeset for help on using the changeset viewer.