websterclay / knife-github-cookbooks

A knife plugin facilitating installing, updating, and tracking Chef cookbooks found on Github.
Apache License 2.0
220 stars 35 forks source link

"STDERR: error: pathspec ...did not match any file(s) known to git." on Windows #30

Closed kenny-evitt closed 8 years ago

kenny-evitt commented 9 years ago
kevitt@TAUGUSTINE-PC /c/@Kiln/chef (case1502)
$ knife cookbook github install opscode-cookbooks/iis/hotfix-appcmd_bug_sync
Installing iis from git://github.com/opscode-cookbooks/iis.git to C:/@Kiln/chef/
cookbooks
Checking out the master branch.
Pristine copy branch (chef-vendor-iis) exists, switching to it.
Removing pre-existing version.
Found hotfix-appcmd_bug_sync amoung heads.
16 files updated, committing changes
ERROR: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0],
but received '1'
---- Begin output of git commit -m 'Import opscode-cookbooks/iis version 6470bd0
34670a2dbd341c8907436d4500fa9c82e' -- iis ----
STDOUT:
STDERR: error: pathspec 'opscode-cookbooks/iis' did not match any file(s) known
to git.
error: pathspec 'version' did not match any file(s) known to git.
error: pathspec '6470bd034670a2dbd341c8907436d4500fa9c82e'' did not match any fi
le(s) known to git.
---- End output of git commit -m 'Import opscode-cookbooks/iis version 6470bd034
670a2dbd341c8907436d4500fa9c82e' -- iis ----
Ran git commit -m 'Import opscode-cookbooks/iis version 6470bd034670a2dbd341c890
7436d4500fa9c82e' -- iis returned 1

I suspect this is because single quotes don't work on Windows. I was able to run the following without issue or reported error:

git commit -m "Import opscode-cookbooks/iis version 6470bd034670a2dbd341c8907436d4500fa9c82e"
kenny-evitt commented 9 years ago

I just realized this is probably an upstream issue.

bcg62 commented 9 years ago

@kenny-evitt this tool is outdated and no longer developed. You should look at using berkshelf http://berkshelf.com/

kenny-evitt commented 9 years ago

@bcg62 thanks!

kenny-evitt commented 9 years ago

@bcg62 you might want to consider disabling issues on this repo to indicate that it's no longer active.

bcg62 commented 9 years ago

It's not mine or I would. I went down this same path years ago and eneded up watching it so I notice emails when people interact with the repo.

kenny-evitt commented 9 years ago

@bcg62 ahh; thanks for the help anyways.