diff --git a/lib/setup/clone.dart b/lib/setup/clone.dart
index bbe2ce61..7d442de2 100644
--- a/lib/setup/clone.dart
+++ b/lib/setup/clone.dart
@@ -34,8 +34,8 @@ Future<void> cloneRemote({
       privateKey: sshPrivateKey,
       password: sshPassword,
     );
+    Log.i("Got default branch: $branch");
     if (branch != null && branch.isNotEmpty) {
-      Log.i("Got default branch: $branch");
       remoteBranchName = branch;
     }
   } catch (ex) {