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

Make remote/HEAD resolve to a commit id #21

Closed
thinkerbot opened this issue Apr 27, 2010 · 1 comment
Closed

Make remote/HEAD resolve to a commit id #21

thinkerbot opened this issue Apr 27, 2010 · 1 comment

Comments

@thinkerbot
Copy link

The remote/HEAD references currently do not resolve to a commit id because the HEAD file contains a ref rather than a sha:

% irb -r grit
>> puts Grit::Repo.new('.').remotes.map {|remote| "#{remote.name}: #{remote.commit.id}" }.join("\n")
origin/HEAD: ref:
origin/master: 0bd0c5ff037c7368b2b1827fadc66741d1ed14ed
=> nil
>> exit

% cat .git/refs/remotes/origin/HEAD 
ref: refs/remotes/origin/master

A patch is here: bahuvrihi@31bf65df77e6d9b3df75d9e314e2e9c57a48384d

rlaneve referenced this issue in rlaneve/grit May 15, 2013
@bkeepers
Copy link
Collaborator

bkeepers commented Feb 3, 2014

Grit is no longer maintained. See #183 and check out libgit2/rugged.

@bkeepers bkeepers closed this as completed Feb 3, 2014
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

2 participants