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

check for available git version #95

Closed
xorpaul opened this issue Mar 14, 2018 · 1 comment
Closed

check for available git version #95

xorpaul opened this issue Mar 14, 2018 · 1 comment

Comments

@xorpaul
Copy link
Owner

xorpaul commented Mar 14, 2018

Testing g10k 0.4.5, which worked on CentOS 7, but I had to roll it back on CentOS 6.
I believe the problem is some incompatibility with the version of git available on CentOS 6.
This is the error that I get:

Executing git --git-dir /opt/puppetlabs/g10k/cache/ssh-__gitlab@gitlab.example.net_puppet-apps_perfui rev-parse --verify 'test^{object}' took 0.02260s
executeCommand(): git command failed: git --git-dir /opt/puppetlabs/g10k/cache/ssh-__gitlab@gitlab.example.net_puppet-apps_perfui rev-parse --verify 'test^{object}' exit status 128
Output: fatal: Needed a single revision

CentOS 6:

# git --version
git version 1.7.1

CentOS 7:

# git --version
git version 1.8.3.1
@xorpaul
Copy link
Owner Author

xorpaul commented May 17, 2018

Added documentation for new g10k config setting:

To check for really existing objects, g10k uses master^{object} syntax, which is not supported in older Git versions, like on CentOS 6, see #91
g10k will skip this sanity check when the g10k config setting git_object_syntax_not_supported is set to true (defaults to false)
Example:

---
:cachedir: '/tmp/g10k'
git_object_syntax_not_supported: true

sources:
  example:
    remote: 'https://github.com/xorpaul/g10k-environment.git'
    basedir: '/tmp/example/'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant