Skip to content

Commit

Permalink
add fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
dummygithubaccount committed Jan 8, 2024
1 parent d6ba5e1 commit 13680d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions images/scm_scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,7 @@ def get_changed_files(
temp_branch = "temp_branch"
repo = Repo(workdir)
current_sha = repo.head.object.hexsha
repo.git.fetch()
repo.git.checkout(source_branch)
repo.git.checkout(b=temp_branch)
head_commit = repo.head.commit
Expand Down

0 comments on commit 13680d1

Please sign in to comment.