mirror of
https://github.com/Jguer/yay.git
synced 2025-10-07 00:14:22 -04:00
Merge pull request #595 from Morganamilo/noprogress
Use no-progress when cloning packages
This commit is contained in:
commit
6892ea153f
@ -60,7 +60,7 @@ func gitHasDiff(path string, name string) (bool, error) {
|
|||||||
func gitDownload(url string, path string, name string) (bool, error) {
|
func gitDownload(url string, path string, name string) (bool, error) {
|
||||||
_, err := os.Stat(filepath.Join(path, name, ".git"))
|
_, err := os.Stat(filepath.Join(path, name, ".git"))
|
||||||
if os.IsNotExist(err) {
|
if os.IsNotExist(err) {
|
||||||
err = show(passToGit(path, "clone", url, name))
|
err = show(passToGit(path, "clone", "--no-progress", url, name))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return false, fmt.Errorf("error cloning %s", name)
|
return false, fmt.Errorf("error cloning %s", name)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user