Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forcibly fetching current branch fails #222

Closed
ddgenome opened this issue Feb 4, 2021 · 1 comment
Closed

Forcibly fetching current branch fails #222

ddgenome opened this issue Feb 4, 2021 · 1 comment
Assignees
Labels
changelog:fixed Add this issue or pull request to fixed changelog section

Comments

@ddgenome
Copy link
Contributor

ddgenome commented Feb 4, 2021

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=

@ddgenome ddgenome self-assigned this Feb 4, 2021
@ddgenome
Copy link
Contributor Author

ddgenome commented Feb 4, 2021

The --update-head-ok option may be what is needed.

https://stackoverflow.com/a/19205680/5464956

@ddgenome ddgenome added the changelog:fixed Add this issue or pull request to fixed changelog section label Feb 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:fixed Add this issue or pull request to fixed changelog section
Projects
None yet
Development

No branches or pull requests

1 participant