Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions git-remote-rclone
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,11 @@ def main():
if len(sys.argv) < 3:
raise ValueError("Usage: git-remote-rclone REMOTE-NAME URL")

# Git's remote-helper and fast-import protocols require LF-delimited lines.
# Prevent Python from translating them to CRLF on Windows.
if os.name == 'nt' and hasattr(sys.stdout, 'reconfigure'):
sys.stdout.reconfigure(newline='\n')

remote, url = sys.argv[1:3]
gitdir = os.environ['GIT_DIR'] # no fallback, must be present

Expand Down
6 changes: 2 additions & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
[metadata]
url = https://github.com/redstreet/git-remote-rclone-reds
version = 0.3
url = https://github.com/redstreet/git-remote-rclone
version = 0.3.1
author = Red S
author_email = redstreet@users.noreply.github.com
maintainer = Red S
maintainer_email = redstreet@users.noreply.github.com
description = Git remote helper for rclone-supported services
long_description = file:README.md
long_description_content_type = text/markdown; charset=UTF-8; variant=GFM
Expand Down