Merge pull request #1935 from PatrickMassot/main · gitpython-developers/GitPython@b71ce68

Original file line numberDiff line numberDiff line change

@@ -828,8 +828,15 @@ def remove(cls, repo: "Repo", name: str) -> str:

828828

name._clear_cache()

829829

return name

830830
831-

# `rm` is an alias.

832-

rm = remove

831+

@classmethod

832+

def rm(cls, repo: "Repo", name: str) -> str:

833+

"""Alias of remove.

834+

Remove the remote with the given name.

835+
836+

:return:

837+

The passed remote name to remove

838+

"""

839+

return cls.remove(repo, name)

833840
834841

def rename(self, new_name: str) -> "Remote":

835842

"""Rename self to the given `new_name`.