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

Open
andrewying opened this issue Sep 24, 2019 · 2 comments

Comments

@andrewying
Copy link

commented Sep 24, 2019

Description

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

Chef Version

15.3.14

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 "https://github.com/gabime/spdlog"
    revision "f85a086"
end
  1. Run the above recipe.
  2. Sync with the git repository fails.

Client Output

Chef::Exceptions::UnresolvableGitReference
------------------------------------------
Unable to parse SHA reference for 'f85a086' in repository 'https://github.com/gabime/spdlog'. Verify your (case-sensitive) repository URL and revision.
`git ls-remote 'https://github.com/gabime/spdlog' 'f85a086*'` output: 
@lamont-granquist

This comment has been minimized.

Copy link
Contributor

commented Sep 26, 2019

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

@andrewying

This comment has been minimized.

Copy link
Author

commented Sep 26, 2019

It does not seem to work either:

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