Drop the fork, just exec.
[invirt/scripts/git-migration.git] / filter-subdirs
index 3e44a8d..b6a1369 100755 (executable)
@@ -18,6 +18,4 @@ t = p.stdout.read().strip().split()
 if t != [] and t[1] == 'tree':
     tree = t[2]
 
-subprocess.check_call(['git', 'commit-tree',
-                       tree] + sys.argv[2:],
-                      stdin=sys.stdin)
+os.execvp('git', ['git', 'commit-tree', tree] + sys.argv[2:])