log.Info(repo.GetFullPath(),"git pulled too recently",shell.FormatDuration(time.Since(t)))
}
returnnil
}
varcmd[]string
cmd=append(cmd,"git","pull")
_,err:=repo.RunVerbose(cmd)
iferr!=nil{
log.Info(repo.GetFullPath(),"git pull err:",err)
}
returnnil
}
// is every repo on the devel branch?
funcdoGitPullNew(){
now:=time.Now()
me.forge.RillFuncError(rillPull)
count:=me.forge.RillReload()
ifcount!=0{
me.forge.ConfigSave()
}
total,count,nope,_:=IsEverythingOnMaster()
log.Printf("Master branch check. %d total repos. (%d git pulled) (%d not on master branch) (%s)\n",total,count,nope,shell.FormatDuration(time.Since(now)))