Skip to content

Commit

Permalink
serving proper HEAD reference now
Browse files Browse the repository at this point in the history
  • Loading branch information
schacon committed Aug 26, 2009
1 parent dff43ae commit 89b7ff9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions TODO
Expand Up @@ -2,7 +2,6 @@ TODO
=============== ===============


* Implementation Fixes * Implementation Fixes
- add real HEAD reference
- fetches hangup gracefully - fetches hangup gracefully
- partial packfile cache usage - partial packfile cache usage


Expand Down Expand Up @@ -36,4 +35,4 @@ TODO
- split large blobs in object space on insert - split large blobs in object space on insert
- if the client split up blobs, be able to reconstruct and pack them - if the client split up blobs, be able to reconstruct and pack them
- split long revtree entries - split long revtree entries
- reconstruct long revtree entries (possibly done) - reconstruct long revtree entries (possibly done)
3 changes: 3 additions & 0 deletions dulwich/agitmemnon.py
Expand Up @@ -187,6 +187,9 @@ def get_refs(self):
if len(col.value) == 40: if len(col.value) == 40:
ret['refs/' + x.name + '/' + col.name] = col.value ret['refs/' + x.name + '/' + col.name] = col.value
if x.name == 'heads' and col.name == 'master': if x.name == 'heads' and col.name == 'master':
if 'HEAD' not in ret:
ret['HEAD'] = col.value
if x.name == 'meta' and col.name == 'HEAD':
ret['HEAD'] = col.value ret['HEAD'] = col.value
return ret return ret


Expand Down

0 comments on commit 89b7ff9

Please sign in to comment.