Skip to content

Commit 1ae9f17

Browse files
committed
[fix] Push to refs/heads if needed
Signed-off-by: Edward Z. Yang <[email protected]> ghstack-source-id: 3e769b2 ghstack-comment-id: 2816313911 Pull-Request-resolved: #284
1 parent b00c638 commit 1ae9f17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ghstack/land.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def main(
168168
# TODO: regex here so janky
169169
base_ref = re.sub(r"/orig$", "/base", orig_ref)
170170
head_ref = re.sub(r"/orig$", "/head", orig_ref)
171-
sh.git("push", remote_name, f"{remote_name}/{head_ref}:{base_ref}")
171+
sh.git("push", remote_name, f"{remote_name}/{head_ref}:refs/heads/{base_ref}")
172172
github.notify_merged(pr_resolved)
173173

174174
# All good! Push!

0 commit comments

Comments
 (0)