Skip to content
Browse files

serving proper HEAD reference now

  • Loading branch information...
1 parent dff43ae commit 89b7ff92e1f9e3234d1a6664c27f8fff1a261a58 @schacon committed Aug 26, 2009
Showing with 4 additions and 2 deletions.
  1. +1 −2 TODO
  2. +3 −0 dulwich/agitmemnon.py
View
3 TODO
@@ -2,7 +2,6 @@ TODO
===============
* Implementation Fixes
- - add real HEAD reference
- fetches hangup gracefully
- partial packfile cache usage
@@ -36,4 +35,4 @@ TODO
- split large blobs in object space on insert
- if the client split up blobs, be able to reconstruct and pack them
- split long revtree entries
- - reconstruct long revtree entries (possibly done)
+ - reconstruct long revtree entries (possibly done)
View
3 dulwich/agitmemnon.py
@@ -187,6 +187,9 @@ def get_refs(self):
if len(col.value) == 40:
ret['refs/' + x.name + '/' + col.name] = col.value
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
return ret

0 comments on commit 89b7ff9

Please sign in to comment.
Something went wrong with that request. Please try again.