Skip to content

Instantly share code, notes, and snippets.

@zstumgoren
Created November 3, 2015 16:43
Show Gist options
  • Save zstumgoren/e1a27c55f77d51c7ff10 to your computer and use it in GitHub Desktop.
Save zstumgoren/e1a27c55f77d51c7ff10 to your computer and use it in GitHub Desktop.
r10k git errors
~/code/ruby/ap/devops/vmfarm/puppet/private> cd projects/
~/code/ruby/ap/devops/vmfarm/puppet/private/projects> pwd
/Users/stumgoren/code/ruby/ap/devops/vmfarm/puppet/private/projects
~/code/ruby/ap/devops/vmfarm/puppet/private/projects> git branch -a
error: object directory /root/.r10k/git/https---git.ap.org-puppet-puppet-projects.git/objects does not exist; check .git/objects/info/alternates.
master
remotes/cache/master
remotes/origin/HEAD -> origin/master
remotes/origin/master
~/code/ruby/ap/devops/vmfarm/puppet/private/projects> git remote show
cache
origin
~/code/ruby/ap/devops/vmfarm/puppet/private/projects> git remote show origin
error: object directory /root/.r10k/git/https---git.ap.org-puppet-puppet-projects.git/objects does not exist; check .git/objects/info/alternates.
error: refs/heads/master does not point to a valid object!
error: refs/remotes/cache/master does not point to a valid object!
error: refs/remotes/origin/HEAD does not point to a valid object!
error: refs/remotes/origin/master does not point to a valid object!
error: refs/heads/master does not point to a valid object!
error: refs/remotes/cache/master does not point to a valid object!
error: refs/remotes/origin/HEAD does not point to a valid object!
error: refs/remotes/origin/master does not point to a valid object!
* remote origin
Fetch URL: https://git.ap.org/puppet/puppet-projects.git
Push URL: https://git.ap.org/puppet/puppet-projects.git
HEAD branch: master
Remote branch:
master tracked
Local branch configured for 'git pull':
master merges with remote master
~/code/ruby/ap/devops/vmfarm/puppet/private/projects> git checkout master
error: object directory /root/.r10k/git/https---git.ap.org-puppet-puppet-projects.git/objects does not exist; check .git/objects/info/alternates.
fatal: reference is not a tree: master
~/code/ruby/ap/devops/vmfarm/puppet/private/projects>
@kirkins
Copy link

kirkins commented May 11, 2017

Getting a similar error to line 5 after setting up r10k.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment