fix: change simple-git import
This commit is contained in:
		@@ -1,5 +1,5 @@
 | 
				
			|||||||
const path = require('path')
 | 
					const path = require('path')
 | 
				
			||||||
const sgit = require('simple-git/promise')
 | 
					const sgit = require('simple-git')
 | 
				
			||||||
const fs = require('fs-extra')
 | 
					const fs = require('fs-extra')
 | 
				
			||||||
const _ = require('lodash')
 | 
					const _ = require('lodash')
 | 
				
			||||||
const stream = require('stream')
 | 
					const stream = require('stream')
 | 
				
			||||||
@@ -160,8 +160,8 @@ module.exports = {
 | 
				
			|||||||
            fNames.old = fMatch[1]
 | 
					            fNames.old = fMatch[1]
 | 
				
			||||||
            fNames.new = fMatch[4]
 | 
					            fNames.new = fMatch[4]
 | 
				
			||||||
          } else {
 | 
					          } else {
 | 
				
			||||||
            fNames.old = (fMatch[1]+fMatch[2]+fMatch[4]).replace('//', '/'),
 | 
					            fNames.old = (fMatch[1] + fMatch[2] + fMatch[4]).replace('//', '/'),
 | 
				
			||||||
            fNames.new = (fMatch[1]+fMatch[3]+fMatch[4]).replace('//', '/')
 | 
					            fNames.new = (fMatch[1] + fMatch[3] + fMatch[4]).replace('//', '/')
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
          const fPath = path.join(this.repoPath, fNames.new)
 | 
					          const fPath = path.join(this.repoPath, fNames.new)
 | 
				
			||||||
          let fStats = { size: 0 }
 | 
					          let fStats = { size: 0 }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user