Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Incorrect behavior ofRepo.remote() #229

Closed
Assignees
Byron
@ereOn

Description

@ereOn

According to its documentation,Repo.remote() is supposed to raise aValueError is the specified remote name does not match an existing remote on the repository.

However, from the code it seems that its not the case:

def remote(self, name='origin'):    """:return: Remote with the specified name    :raise ValueError:  if no remote with such a name exists"""    return Remote(self, name)

See the__init__ implementation forRemote:

class Remote(LazyMixin, Iterable):    def __init__(self, repo, name):        self.repo = repo        self.name = name        if os.name == 'nt':             dir(self)

The actual code just create aRemote instance which fails later on whenever one of its method is called.

This is likely not the expected behavior and I would assume the documation to be more sensible that the current implementation.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp