feat: add --depth option to git clone (#46)

This commit is contained in:
Nao YONASHIRO
2019-05-22 10:07:42 +09:00
committed by Teppei Fukuda
parent 76ee7291d6
commit 68f326d9e1

View File

@@ -92,7 +92,7 @@ func clone(url, repoPath string) error {
}
func cloneByOSCommand(url, repoPath string) error {
commandAndArgs := []string{"clone", url, repoPath}
commandAndArgs := []string{"clone", "--depth=1", url, repoPath}
_, err := utils.Exec("git", commandAndArgs)
if err != nil {
return xerrors.Errorf("error in git clone: %w", err)