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

Git resource revision property cannot be commit revision #8913

andrewying opened this issue Sep 24, 2019 · 2 comments


Copy link

commented Sep 24, 2019


Git resource fails to clone if a commit is specified as the revision property.

Chef Version


Platform Version

Ubuntu 16.04

Replication Case

  1. Create recipe with the following resource, with a commit (and not a tag/branch) specified as the revision.
git "/spdlog" do
    action :sync
    repository ""
    revision "f85a086"
  1. Run the above recipe.
  2. Sync with the git repository fails.

Client Output

Unable to parse SHA reference for 'f85a086' in repository ''. Verify your (case-sensitive) repository URL and revision.
`git ls-remote '' 'f85a086*'` output: 

This comment has been minimized.

Copy link

commented Sep 26, 2019

what if you use the full sha reference and not the abbreviated one?


This comment has been minimized.

Copy link

commented Sep 26, 2019

It does not seem to work either:

➜ git ls-remote '' '66964161070a5c4474c7b73893821b84bd4e43fb'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.