Update flakestat
Some checks failed
pre-commit / pre-commit (push) Failing after 16s

This commit is contained in:
Torjus Håkestad 2024-04-23 00:48:45 +02:00
parent 07ab9c2c80
commit 17fd93c88e

View File

@ -14,12 +14,8 @@ unstable_rev=$(echo "$flake_metadata" | jq -r ".locks.nodes.$unstable_input.lock
unstable_branch=$(echo "$flake_metadata" | jq -r ".locks.nodes.$unstable_input.original.ref")
cd "$NIXPKGS_DIR" || exit 1
git fetch -q
git switch -q "$stable_branch"
git pull -q
stable_commit_count=$(git rev-list "$stable_rev..HEAD"|wc -l)
git switch -q "$unstable_branch"
git pull -q
unstable_commit_count=$(git rev-list "$unstable_rev..HEAD"|wc -l)
git fetch -q --all
stable_commit_count=$(git rev-list --count "$stable_rev..origin/$stable_branch")
unstable_commit_count=$(git rev-list --count "$unstable_rev..origin/$unstable_branch")
echo "$stable_commit_count|$unstable_commit_count"