From d6bad5f61cd94a69a31ee2742ac48e190887bf50 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Wed, 26 Jun 2019 15:09:08 +0200 Subject: [PATCH] Fixes bug --- Cargo.lock | 2 ++ src/git.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index baded0f..b88a967 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,3 +1,5 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. [[package]] name = "beautylog" version = "0.1.0" diff --git a/src/git.rs b/src/git.rs index cfde924..3f64448 100644 --- a/src/git.rs +++ b/src/git.rs @@ -38,7 +38,7 @@ macro_rules! unwrap { pub fn parse_url(input: &str) -> Result<(String, String, String)> { if input.starts_with("http") { parse_http_url(input) - } else if input.starts_with("ssh") { + } else if input.starts_with("git@") { parse_ssh_url(input) } else { parse_github_url(input)