Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions ctfcli/core/challenge.py
Original file line number Diff line number Diff line change
Expand Up @@ -736,8 +736,10 @@ def sync(self, ignore: Tuple[str] = ()) -> None:
) as lf:
local_file_sha1sum = hash_file(lf)

if local_file_sha1sum == remote_file_sha1sum:
continue
# Allow users to specify sha1sum in ignore to force reuploads
if "sha1sum" not in ignore:
if local_file_sha1sum == remote_file_sha1sum:
continue

# if sha1sums are not present, or the hashes are different, re-upload the file
self._delete_file(remote_files[local_file_name]["location"])
Expand Down