nwops / retrospec-templates

Official repository for puppet-retrospec templates
4 stars 16 forks source link

Setting git-dir and work-tree #2

Closed WhatsARanjit closed 8 years ago

WhatsARanjit commented 8 years ago

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 to it works correctly.

WhatsARanjit commented 8 years ago

There is also a default template embedded in the gem. PR'd that as well. https://github.com/nwops/puppet-retrospec/pull/50

logicminds commented 8 years ago

yea, older version of git don't support -C. Does the git-dir work on newer versions?

WhatsARanjit commented 8 years ago

My system is git version 1.7.1