nwops / puppet-retrospec

The only tool you need to generate puppet code, tests, modules, facts, types, providers, data and everything else.
https://www.retrospec-puppet.com/
GNU Affero General Public License v3.0
137 stars 27 forks source link

Setting git-dir and work-tree #50

Closed WhatsARanjit closed 8 years ago

WhatsARanjit commented 8 years ago

Related to https://github.com/nwops/retrospec-templates/pull/2

When using retrospec, I get the following error message:

Unknown option: -C
usage: git [--version] [--exec-path[=GIT_EXEC_PATH]] [--html-path]
           [-p|--paginate|--no-pager] [--no-replace-objects]
           [--bare] [--git-dir=GIT_DIR] [--work-tree=GIT_WORK_TREE]
           [--help] COMMAND [ARGS]
Successfully ran hook: /root/.retrospec/repos/retrospec-puppet-templates/clone-hook

The hook is attempting to use the -C flag to set the current working directory and run commands remotely. I've instead changed this to git-dir and work-tree so it works correctly.

logicminds commented 8 years ago

thanks @WhatsARanjit