refactor(git): remove unnecessary code from Git fetch logic

This commit is contained in:
zkochan committed 2017-01-18 00:02:24 +02:00
1 parent 01fdfbad2e
commit 61e5eb294d
1 file changed
-2
-2
View File
@@ -24,8 +24,6 @@ export default async function fetchRes (res: ResolveResult, target: string, opts
* clone a git repository.
*/
async function clone (repo: string, commitId: string, dest: string) {
const args = ['clone', '-b', commitId, repo, dest, '--single-branch']
gitLogger.debug(`cloning git repository from ${repo}`)
await execGit(['clone', repo, dest])
await execGit(['checkout', commitId], {cwd: dest})
}