Skip to content
This repository has been archived by the owner on Jun 3, 2023. It is now read-only.

Commit

Permalink
pkd/debian: Fix repo update code
Browse files Browse the repository at this point in the history
The git version on Debian doesn't recognize the `switch` command. Use
`checkout` instead.
  • Loading branch information
qzed committed Oct 20, 2021
1 parent 88f4ba8 commit 17f7897
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/scripts/repo-debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ git config --global user.name "surfacebot"
# commit and push
rnd="$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)"
update_branch="${BRANCH_STAGING}-${rnd}"
git switch -c "${update_branch}"
git checkout -b "${update_branch}"
git add .
git commit -m "Update Debian $NAME package"
git push --set-upstream origin "${update_branch}"

0 comments on commit 17f7897

Please sign in to comment.