Closed ddgenome closed 3 years ago
When ensuring the current branch, forcibly fetching the current branch fails:
$ git 'fetch' --force origin main:main fatal: Refusing to fetch into current branch refs/heads/main of non-bare repository
Example skill execution: https://go.atomist.com/T29E48P34/log/4b78a8ff-0d4e-4715-aaf4-7607564ccffd/b2CSRQTJ53kEjDVAVITrZ?OnNraWxsLWZpbHRlcjo6S0hzNmJtRnRaU0FpYTJWbGNDMWhMV05vWVc1blpXeHZaeTF6YTJsc2JDSXNJRHB1WVcxbGMzQmhZMlVnSW1GMGIyMXBjM1FpZlNrPQ=
The --update-head-ok option may be what is needed.
--update-head-ok
https://stackoverflow.com/a/19205680/5464956
When ensuring the current branch, forcibly fetching the current branch fails:
Example skill execution: https://go.atomist.com/T29E48P34/log/4b78a8ff-0d4e-4715-aaf4-7607564ccffd/b2CSRQTJ53kEjDVAVITrZ?OnNraWxsLWZpbHRlcjo6S0hzNmJtRnRaU0FpYTJWbGNDMWhMV05vWVc1blpXeHZaeTF6YTJsc2JDSXNJRHB1WVcxbGMzQmhZMlVnSW1GMGIyMXBjM1FpZlNrPQ=