mirror of
https://github.com/grdl/git-get.git
synced 2026-02-06 02:57:56 +00:00
Implement ignoreExisting flag and set default branch also for dump cloning
This commit is contained in:
@@ -2,6 +2,7 @@ package pkg
|
||||
|
||||
import (
|
||||
"bufio"
|
||||
"git-get/pkg/cfg"
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
@@ -58,6 +59,7 @@ func parseLine(line string) (parsedLine, error) {
|
||||
}
|
||||
|
||||
parsed.rawurl = parts[0]
|
||||
parsed.branch = cfg.DefBranch
|
||||
if len(parts) == 2 {
|
||||
parsed.branch = parts[1]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user