Skip to content

Commit

Permalink
Merge pull request #35 from mkanai/accept_git@github.com_for_import
Browse files Browse the repository at this point in the history
accept SCP-like URL (git@github.com) for import command
  • Loading branch information
motemen committed Sep 23, 2014
2 parents cf8b7e6 + 287091b commit 3a47e08
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package main
import (
"bufio"
"fmt"
"net/url"
"os"
"os/exec"
"runtime"
Expand Down Expand Up @@ -320,7 +319,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
Expand Down

0 comments on commit 3a47e08

Please sign in to comment.