From 76c0ec65034798eef908e74cd87e3a1c269d70aa Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Sat, 23 Jan 2021 06:37:58 +0100 Subject: [PATCH] clone: Add some more debug statements I cannot understand why a user has still reported a bug with it. --- lib/setup/clone.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/setup/clone.dart b/lib/setup/clone.dart index a671495d..05259438 100644 --- a/lib/setup/clone.dart +++ b/lib/setup/clone.dart @@ -48,6 +48,7 @@ Future cloneRemote({ } await repo.setUpstreamTo(remote, remoteBranchName); } else { + Log.i("Local branches $branches"); var branch = branches[0]; if (branch == remoteBranchName) { @@ -56,6 +57,7 @@ Future cloneRemote({ await repo.setUpstreamTo(remote, remoteBranchName); var remoteBranch = await repo.remoteBranch(remoteName, remoteBranchName); if (remoteBranch != null) { + Log.i("Merging '$remoteName/$remoteBranchName'"); await _gitRepo.merge( branch: '$remoteName/$remoteBranchName', authorName: authorName, @@ -69,6 +71,8 @@ Future cloneRemote({ await repo.checkoutBranch(remoteBranchName, headRef.hash); await repo.deleteBranch(branch); await repo.setUpstreamTo(remote, remoteBranchName); + + Log.i("Merging '$remoteName/$remoteBranchName'"); await _gitRepo.merge( branch: '$remoteName/$remoteBranchName', authorName: authorName,