From cbdb295315016e5bbdb2689d3afa2a086fdcc0ec Mon Sep 17 00:00:00 2001 From: Nico von Geyso Date: Sun, 12 Aug 2012 01:43:59 +0200 Subject: edit info/refs manually --- fit.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fit.py b/fit.py index 33e3eec..26ec7d8 100644 --- a/fit.py +++ b/fit.py @@ -98,7 +98,11 @@ class Fit: parents ) - return b2a_hex(blob_oid).decode('ascii') + oid_hex = b2a_hex(blob_oid).decode('ascii') + with open('static/fit.git/info/refs', 'w') as f: + f.write('%s\trefs/heads/master' % oid_hex) + + return oid_hex def get_file(self, oid): -- cgit v1.2.3-1-g7c22