From 61e5eb294dbfb2afc80355a25ddeae0781510905 Mon Sep 17 00:00:00 2001 From: zkochan Date: Wed, 18 Jan 2017 00:02:24 +0200 Subject: [PATCH] refactor(git): remove unnecessary code from Git fetch logic --- src/install/fetchResolution.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/install/fetchResolution.ts b/src/install/fetchResolution.ts index 84c8a9ff59..389e16e030 100644 --- a/src/install/fetchResolution.ts +++ b/src/install/fetchResolution.ts @@ -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}) }