Skip to content
This repository was archived by the owner on Nov 6, 2021. It is now read-only.
This repository was archived by the owner on Nov 6, 2021. It is now read-only.

Connection error handling #2

@klausweiss

Description

@klausweiss

Problem:
When hostname is unreachable during initializing repository as follows:

agh-git klausweiss@student.agh.edu.pl init tw-5

And the following occurs:

ssh: Could not resolve hostname student.agh.edu.pl: Temporary failure in name resolution

The links are printed anyway as if nothing happened:

ssh:  ssh://klausweiss@student.agh.edu.pl/~/git/tw-5.git
http: http://student.agh.edu.pl/~klausweiss/git/tw-5.git

And the program returns 0.

To do:
Return non-zero status when ssh fails and do not print the urls.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions