createBranch: headHash is auto inferred

Fixes APP-X0
This commit is contained in:
Vishesh Handa
2021-02-24 11:55:29 +01:00
parent e36e7569b8
commit 4feb26a5d4

View File

@ -76,9 +76,7 @@ Future<void> 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);