Skip to content

【remote().exist()】 exception when lack remote section in config file  #1884

@Im-Asher

Description

@Im-Asher

i wanna to judge remote whether exist ,
the function that [remote().exist()] has exception【ValueError】,
check config file then found lack remote section;

operation:👇
if not self.repo.remote().exist():
self.repo.create_remote("origin",self.repo_url)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions