Last change
on this file since 1939 was
1938,
checked in by broder, 16 years ago
|
Drop the fork, just exec.
|
-
Property svn:executable set to
*
|
File size:
456 bytes
|
Line | |
---|
1 | #!/usr/bin/python |
---|
2 | |
---|
3 | import sys |
---|
4 | import os |
---|
5 | import subprocess |
---|
6 | |
---|
7 | tree = sys.argv[1] |
---|
8 | package = os.environ['PACKAGE'] |
---|
9 | |
---|
10 | p = subprocess.Popen(['git', 'ls-tree', |
---|
11 | tree, |
---|
12 | package], |
---|
13 | stdout=subprocess.PIPE, |
---|
14 | stdin=subprocess.PIPE) |
---|
15 | p.wait() |
---|
16 | t = p.stdout.read().strip().split() |
---|
17 | |
---|
18 | if t != [] and t[1] == 'tree': |
---|
19 | tree = t[2] |
---|
20 | |
---|
21 | os.execvp('git', ['git', 'commit-tree', tree] + sys.argv[2:]) |
---|
Note: See
TracBrowser
for help on using the repository browser.