Skip to content

Commit 98d6ae4

Browse files
committed
fixups
1 parent e476a10 commit 98d6ae4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

jupyter_releaser/lib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ def prep_git(ref, branch, repo, auth, username, url):
530530
ref = ref or ""
531531

532532
# Make sure we have *all* tags
533-
util.run(f"{util.GIT_FETCH_CMD} --tags --force ")
533+
util.run(f"{util.GIT_FETCH_CMD} --tags --force")
534534

535535
# Handle the ref
536536
if ref.startswith("refs/pull/"):
@@ -597,7 +597,7 @@ def forwardport_changelog(
597597

598598
# switch to main branch here
599599
branch = branch or util.get_default_branch()
600-
util.run(f" {branch}")
600+
util.run(f"{util.GIT_FETCH_CMD} {branch}")
601601
util.run(f"git checkout {branch}")
602602

603603
# Bail if the tag has been merged to the branch

jupyter_releaser/tests/test_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def test_prep_git_full(py_package, tmp_path, mocker, runner):
110110
call("git remote add origin https://snuffy:[email protected]/baz/bar.git"),
111111
call(f"{GIT_FETCH_CMD} --tags --force"),
112112
call(f"{GIT_FETCH_CMD} +refs/pull/42:refs/pull/42"),
113-
call(" refs/pull/42"),
113+
call(f"{GIT_FETCH_CMD} refs/pull/42"),
114114
call("git checkout -B foo refs/pull/42"),
115115
]
116116
)

0 commit comments

Comments
 (0)