Skip to content

Commit e1e76d7

Browse files
author
Trong Nhan Mai
committed
chore: fix conditions for pulling newest changes
Signed-off-by: Trong Nhan Mai <[email protected]>
1 parent dc986c6 commit e1e76d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/macaron/slsa_analyzer/git_url.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def check_out_repo_target(git_obj: Git, branch_name: str = "", digest: str = "",
144144
# We only pull the latest changes if we are not running in offline mode and:
145145
# - no digest is provided.
146146
# - or a commit digest is provided but it does not exist in the current local branch.
147-
if not offline_mode and (not digest or (digest or not commit_exists(git_obj, digest))):
147+
if not offline_mode and (not digest or not commit_exists(git_obj, digest)):
148148
logger.info("Pulling the latest changes of branch %s fast-forward only.", res_branch)
149149
if not pull_latest_changes(git_obj):
150150
logger.error(

0 commit comments

Comments
 (0)