From a25da6381934edc4582b8ba87b44c50196dd91ff Mon Sep 17 00:00:00 2001 From: Nico von Geyso Date: Sun, 12 Aug 2012 14:33:24 +0200 Subject: use commit oid instead of tree oid --- fit.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fit.py b/fit.py index 26ec7d8..97d3593 100644 --- a/fit.py +++ b/fit.py @@ -98,11 +98,10 @@ class Fit: parents ) - 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) + f.write('%s\trefs/heads/master' % b2a_hex(blob_oid).decode('ascii')) - return oid_hex + return b2a_hex(blob_oid).decode('ascii') def get_file(self, oid): -- cgit v1.2.3-1-g7c22