Continue script execution when "git checkout" fails

This commit is contained in:
0x1eef 2024-07-24 14:23:45 -03:00
parent 0b029b5124
commit c97b48bc0d
2 changed files with 8 additions and 1 deletions

View file

@ -34,5 +34,5 @@ fi
"${git}" clone "${giturl}" "${gitdir}"
cd "${gitdir}"
"${git}" config core.filemode off
"${git}" checkout -t origin/"${branch}"
"${git}" checkout -t origin/"${branch}" || true
printok "clone complete"

View file

@ -1,3 +1,10 @@
v?.?.?
| Recover from "git checkout" failure
After this change, "git checkout" exiting unsuccessfully
towards the end of "sourcezap clone" no longer causes
sourcezap to exit as well
v0.2.1
| Fix Makefile