From 287091ba08bd0a2dc2e2fb501ced9213863facf3 Mon Sep 17 00:00:00 2001 From: Masahiro Kanai Date: Sat, 13 Sep 2014 22:14:06 +0900 Subject: [PATCH] accpet SCP-like URL (git@github.com) for import command --- commands.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/commands.go b/commands.go index 4e57540c..bf564367 100644 --- a/commands.go +++ b/commands.go @@ -3,7 +3,6 @@ package main import ( "bufio" "fmt" - "net/url" "os" "os/exec" "runtime" @@ -311,7 +310,7 @@ func doImport(c *cli.Context) { scanner := bufio.NewScanner(os.Stdin) for scanner.Scan() { line := scanner.Text() - url, err := url.Parse(line) + url, err := NewURL(line) if err != nil { utils.Log("error", fmt.Sprintf("Could not parse URL <%s>: %s", line, err)) continue