const download = require('download-git-repo')

const downloadResourse = () => {
    // download('https://github.com:LengYi/module3#master', "333", { clone: true }, (err) => {
    //     console.log("9999")
    // }) 

    download('direct:http://172.16.6.11:8050/xupd/framework/reactnative/XupdResourse.git', 'resourse', { clone: true }, function (err) {
        console.log(err ? err : 'Success')
    })

    // download('direct:http://172.16.6.11:8050/Tools/Lint.git', '555', { headers: { 'PRIVATE-TOKEN': '123' } } function (err) {
    //   console.log(err ? 'Error' : 'Success')
    // })
}

module.exports.downloadGit = downloadResourse