Skip to content

Commit 5647e5d

Browse files
committed
fixes
1 parent 2ba4e2d commit 5647e5d

File tree

9 files changed

+19
-20
lines changed

9 files changed

+19
-20
lines changed

src/ghstack/land.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,7 @@ def main(
168168
lines[0] = subject
169169
new_msg = "\n".join(lines)
170170
# Preserve dates to keep the commit hash consistent
171-
sh.sh(
172-
"git",
171+
sh.git(
173172
"commit",
174173
"--amend",
175174
"-F",

test/land/default_branch_change.py.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ gh_land(diff2.pr_url)
107107
assert_expected_inline(
108108
get_upstream_sh().git("log", "--oneline", "master"),
109109
"""\
110-
838086c Commit B (#501)
111-
da05922 Commit A (#500)
110+
6b7e56e Commit B (#501)
111+
1132c50 Commit A (#500)
112112
dc8bfe4 Initial commit""",
113113
)
114114
assert_expected_inline(

test/land/ff.py.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ gh_land(pr_url)
1111
assert_expected_inline(
1212
get_upstream_sh().git("log", "--oneline", "master"),
1313
"""\
14-
8b039fb Commit A (#500)
14+
d518c9f Commit A (#500)
1515
dc8bfe4 Initial commit""",
1616
)
1717

test/land/ff_stack.py.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ gh_land(pr_url)
1616
assert_expected_inline(
1717
get_upstream_sh().git("log", "--oneline", "master"),
1818
"""\
19-
34cfe12 Commit B (#501)
20-
049a42c Commit A (#500)
19+
4099517 Commit B (#501)
20+
c28edd5 Commit A (#500)
2121
dc8bfe4 Initial commit""",
2222
)

test/land/ff_stack_two_phase.py.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ gh_land(pr_url2)
1818
assert_expected_inline(
1919
get_upstream_sh().git("log", "--oneline", "master"),
2020
"""\
21-
34cfe12 Commit B (#501)
22-
049a42c Commit A (#500)
21+
4099517 Commit B (#501)
22+
c28edd5 Commit A (#500)
2323
dc8bfe4 Initial commit""",
2424
)

test/land/invalid_resubmit.py.test

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ else:
4444

4545
This is commit A
4646

47-
* d700a19 New PR
47+
* d1c3c7e New PR
4848

4949
Repository state:
5050

51-
* d700a19 (gh/ezyang/1/head)
51+
* d1c3c7e (gh/ezyang/1/head)
5252
| New PR
53-
* 239fc10 (gh/ezyang/1/base)
53+
* 5f392f5 (gh/ezyang/1/base)
5454
| New PR (base update)
55-
* 8b039fb (HEAD -> master)
55+
* d518c9f (HEAD -> master)
5656
| Commit A (#500)
5757
* dc8bfe4
5858
Initial commit

test/land/non_ff.py.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ gh_land(pr_url)
1717
assert_expected_inline(
1818
get_upstream_sh().git("log", "--oneline", "master"),
1919
"""\
20-
0388cc8 Commit A (#500)
20+
8b61aeb Commit A (#500)
2121
38808c0 Commit U
2222
dc8bfe4 Initial commit""",
2323
)

test/land/non_ff_stack_two_phase.py.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ gh_land(pr_url2)
2222
assert_expected_inline(
2323
get_upstream_sh().git("log", "--oneline", "master"),
2424
"""\
25-
3657657 Commit B (#501)
26-
18a5a80 Commit A (#500)
25+
402e96c Commit B (#501)
26+
e388a10 Commit A (#500)
2727
a8ca27f Commit C
2828
dc8bfe4 Initial commit""",
2929
)

test/land/update_after_land.py.test

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,16 @@ else:
5555

5656
This is commit B
5757

58-
* 0b71837 Run 3
58+
* 87c9ccd Run 3
5959
* 16e1e12 Initial 1
6060

6161
Repository state:
6262

63-
* 0b71837 (gh/ezyang/2/head)
63+
* 87c9ccd (gh/ezyang/2/head)
6464
|\\ Run 3
65-
| * 16c66a5 (gh/ezyang/2/base)
65+
| * a800ca6 (gh/ezyang/2/base)
6666
| |\\ Run 3 (base update)
67-
| | * 71f0c87 (HEAD -> master)
67+
| | * 70eb094 (HEAD -> master)
6868
| | | Commit A (#500)
6969
| | * 7f0288c
7070
| | | Commit U

0 commit comments

Comments
 (0)