You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
suricata/scripts
Juliana Fajardini 6aa97aa8a9 clang-format: handle branch without commits
When a branch has no commits of its own, e.g. when it is the baseline
branch itself, git rev-list returns nothing and first_commit is empty.
The empty value was still used to build "$first_commit^", which git
rejects as a bad revision.

git-clang-format then failed without writing anything to stdout, which
the output check reads as "formatting required". Pushing the baseline
branch therefore failed the CI formatting check, reporting a style
violation that does not exist.

Report that there is nothing to format instead.
git rev-list also returns nothing when the baseline ref does not exist
as it only reports that on stderr, so verify the baseline separately to
keep that case a loud failure rather than a silent pass.

Ticket: #9097
1 month ago
..
dnp3-gen dnp3: allocate variable-length object fields dynamically 2 months ago
docrules ci: check-doc-rules copies data(sets) files into tmpdir 5 months ago
bundle.sh misc: rename requirements.txt to bundle.txt 4 months ago
check-dist-rules.py ci: check dist rules 6 months ago
check-doc-rules.py scripts: check doc rules as TD and FW rules 2 months ago
check-setup.sh http: Use libhtp-rs. 2 years ago
check-uint-keywords.py ci: check uint keywords with their size 4 months ago
check_keyword_doc_links.py doc/ci: check keyword links 6 months ago
clang-format.sh clang-format: handle branch without commits 1 month ago
cppclean_check.py rust: move file functions out of SuricataContext 1 year ago
docs-almalinux9-minimal-build.sh github-ci: cleanups to almalinux minimal build 2 months ago
docs-debian-minimal-build.sh github-ci: break ubuntu/debian script into 2 scripts 2 months ago
docs-ubuntu-minimal-build.sh github-ci: break ubuntu/debian script into 2 scripts 2 months ago
eve-parity.py scripts: eve-parity hard fail on unknown keyword 11 months ago
evedoc.py scripts/evedoc.py: handle union types in schema 1 year ago
extract_dce_rpc_interfaces.py dcerpc: add interface-service name data 3 months ago
generate-images.sh devguide: drop use of mscgen script in builds/make 5 years ago
git-clang-format-custom util: Add clang-format helper script 6 years ago
rustc.py ci: rustc wrapper to disable coverage for external crates 2 years ago
rustfmt.sh ci: check cargo fmt for whole suricata 4 months ago
schema-sort.py ci/scripts: check for dots and dashes in json schema keys 6 months ago
setup-app-layer.py scripts: setup app layer rustfmt mod.rs last 1 year ago
setup-decoder.sh
…
setup-simple-detect.sh
…