Skip to content

Commit

Permalink
more force (#378)
Browse files Browse the repository at this point in the history
  • Loading branch information
lekko-jonathan authored May 2, 2024
1 parent fbdeb86 commit b3aab33
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmd/lekko/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b3aab33

Please sign in to comment.