Skip to content

Commit

Permalink
Need to strip the result to remove the newline.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Oct 7, 2022
1 parent 5a02377 commit 15a2789
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jaraco/develop/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def configure_fork(project, repo):
cmd = ['git', 'config', '--local', 'branch.main.remote', 'upstream']
subprocess.check_call(cmd, cwd=repo)
cmd = ['git', 'remote', 'get-url', 'origin']
origin = subprocess.check_output(cmd, cwd=repo)
origin = subprocess.check_output(cmd, cwd=repo).strip()
cmd = ['git', 'remote', 'set-url', '--push', 'upstream', origin]
subprocess.check_output(cmd, cwd=repo)

Expand Down

0 comments on commit 15a2789

Please sign in to comment.