|
6 | 6 |
|
7 | 7 | def make_git_repo(): |
8 | 8 | """Turn the current directory into an empty git repository""" |
9 | | - check_call_suppress_output(['git', 'init']) |
| 9 | + check_call_suppress_output(" ".join(['git', 'init'])) |
10 | 10 |
|
11 | 11 | def add_git_commit(): |
12 | 12 | """Add a git commit in the current directory""" |
13 | 13 | with open('README', 'a') as myfile: |
14 | 14 | myfile.write('more info') |
15 | | - check_call_suppress_output(['git', 'add', 'README']) |
16 | | - check_call_suppress_output(['git', 'commit', '-m', 'my commit message']) |
| 15 | + check_call_suppress_output(" ".join(['git', 'add', 'README'])) |
| 16 | + check_call_suppress_output("git commit -m 'my commit message'") |
17 | 17 |
|
18 | 18 | def checkout_git_branch(branchname): |
19 | 19 | """Checkout a new branch in the current directory""" |
20 | | - check_call_suppress_output(['git', 'checkout', '-b', branchname]) |
| 20 | + check_call_suppress_output(" ".join(['git', 'checkout', '-b', branchname])) |
21 | 21 |
|
22 | 22 | def make_git_tag(tagname): |
23 | 23 | """Make a lightweight tag at the current commit""" |
24 | | - check_call_suppress_output(['git', 'tag', '-m', 'making a tag', tagname]) |
| 24 | + check_call_suppress_output("git tag -m 'making a tag' " + tagname) |
25 | 25 |
|
26 | 26 | def checkout_git_ref(refname): |
27 | 27 | """Checkout the given refname in the current directory""" |
28 | | - check_call_suppress_output(['git', 'checkout', refname]) |
| 28 | + check_call_suppress_output(" ".join(['git', 'checkout', refname])) |
0 commit comments