This commit is contained in:
parent
07ab9c2c80
commit
17fd93c88e
@ -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")
|
unstable_branch=$(echo "$flake_metadata" | jq -r ".locks.nodes.$unstable_input.original.ref")
|
||||||
|
|
||||||
cd "$NIXPKGS_DIR" || exit 1
|
cd "$NIXPKGS_DIR" || exit 1
|
||||||
git fetch -q
|
git fetch -q --all
|
||||||
git switch -q "$stable_branch"
|
stable_commit_count=$(git rev-list --count "$stable_rev..origin/$stable_branch")
|
||||||
git pull -q
|
unstable_commit_count=$(git rev-list --count "$unstable_rev..origin/$unstable_branch")
|
||||||
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)
|
|
||||||
|
|
||||||
echo "$stable_commit_count|$unstable_commit_count"
|
echo "$stable_commit_count|$unstable_commit_count"
|
||||||
|
Loading…
Reference in New Issue
Block a user