Skip to content

Commit f826875

Browse files
committed
Fix condition check for current remote name in rename method
1 parent a011e26 commit f826875

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pygit2/remotes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ def rename(self, name, new_name):
376376
the standard format and thus could not be remapped.
377377
"""
378378

379-
if not new_name:
379+
if not name:
380380
raise ValueError('Current remote name must be a non-empty string')
381381

382382
if not new_name:

0 commit comments

Comments
 (0)