From b3aab339a8016c32558a8e22c7a55a24767b97e2 Mon Sep 17 00:00:00 2001 From: lekko-jonathan <150070021+lekko-jonathan@users.noreply.github.com> Date: Thu, 2 May 2024 12:22:27 -0700 Subject: [PATCH] more force (#378) --- cmd/lekko/repo.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cmd/lekko/repo.go b/cmd/lekko/repo.go index 964cdd4b..edd372a6 100644 --- a/cmd/lekko/repo.go +++ b/cmd/lekko/repo.go @@ -484,8 +484,10 @@ func pullCmd() *cobra.Command { } lekkoPath := dot.LekkoPath - if len(dot.LockSHA) == 0 { - fmt.Println("No Lekko lock information found, syncing from remote...") + if len(dot.LockSHA) == 0 || force { + if len(dot.LockSHA) == 0 { + fmt.Println("No Lekko lock information found, syncing from remote...") + } // no lekko lock, sync from remote if !force { hasLekkoChanges, err := HasLekkoChanges(lekkoPath)