X-Git-Url: http://xvm.mit.edu/gitweb/invirt/scripts/git-migration.git/blobdiff_plain/0557570b9210d60dfc4158cc1f7330274b20cda9..818c96f8830ab820af780262154e9571239af6c6:/filter-subdirs?ds=sidebyside diff --git a/filter-subdirs b/filter-subdirs deleted file mode 100755 index b6a1369..0000000 --- a/filter-subdirs +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/python - -import sys -import os -import subprocess - -tree = sys.argv[1] -package = os.environ['PACKAGE'] - -p = subprocess.Popen(['git', 'ls-tree', - tree, - package], - stdout=subprocess.PIPE, - stdin=subprocess.PIPE) -p.wait() -t = p.stdout.read().strip().split() - -if t != [] and t[1] == 'tree': - tree = t[2] - -os.execvp('git', ['git', 'commit-tree', tree] + sys.argv[2:])