From 4feb26a5d4c1d906cf4626ff2d041329e5703b98 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Wed, 24 Feb 2021 11:55:29 +0100 Subject: [PATCH] createBranch: headHash is auto inferred Fixes APP-X0 --- lib/setup/clone.dart | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/setup/clone.dart b/lib/setup/clone.dart index afc47315..eeaaab83 100644 --- a/lib/setup/clone.dart +++ b/lib/setup/clone.dart @@ -76,9 +76,7 @@ Future cloneRemote({ } } else { Log.i("Completing - localBranch diff remote: $branch $remoteBranchName"); - - var headRef = await repo.resolveReference(await repo.head()); - await repo.createBranch(remoteBranchName, hash: headRef.hash); + await repo.createBranch(remoteBranchName); await repo.checkoutBranch(remoteBranchName); await repo.deleteBranch(branch);