summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNico von Geyso <Nico.Geyso@FU-Berlin.de>2012-08-12 14:33:24 +0200
committerNico von Geyso <Nico.Geyso@FU-Berlin.de>2012-08-12 14:33:24 +0200
commita25da6381934edc4582b8ba87b44c50196dd91ff (patch)
tree02c2b2f3525bb6cc22d2ad386686e9a512f3d25d
parentcbdb295315016e5bbdb2689d3afa2a086fdcc0ec (diff)
downloadklausuren-a25da6381934edc4582b8ba87b44c50196dd91ff.tar.gz
klausuren-a25da6381934edc4582b8ba87b44c50196dd91ff.tar.bz2
klausuren-a25da6381934edc4582b8ba87b44c50196dd91ff.zip
use commit oid instead of tree oid
-rw-r--r--fit.py5
1 files 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):