6
0
mirror of https://github.com/grdl/git-get.git synced 2026-02-05 01:29:42 +00:00

Fallback to default branch when cloning instead of parsing

This commit is contained in:
Grzegorz Dlugoszewski
2020-06-18 18:45:04 +02:00
parent e800652a6e
commit 4fbdcde57b
2 changed files with 5 additions and 3 deletions

View File

@@ -2,7 +2,6 @@ package pkg
import (
"bufio"
"git-get/pkg/cfg"
"os"
"strings"
@@ -59,7 +58,6 @@ func parseLine(line string) (parsedLine, error) {
}
parsed.rawurl = parts[0]
parsed.branch = cfg.DefBranch
if len(parts) == 2 {
parsed.branch = parts[1]
}