summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNico von Geyso <Nico.Geyso@FU-Berlin.de>2012-08-12 01:43:59 +0200
committerNico von Geyso <Nico.Geyso@FU-Berlin.de>2012-08-12 01:43:59 +0200
commitcbdb295315016e5bbdb2689d3afa2a086fdcc0ec (patch)
treefc2adeb9ef721da311688a4cfb784d51f480bd15
parent026a29c495a8665b8af3a7fd6686346a577d32f7 (diff)
downloadklausuren-cbdb295315016e5bbdb2689d3afa2a086fdcc0ec.tar.gz
klausuren-cbdb295315016e5bbdb2689d3afa2a086fdcc0ec.tar.bz2
klausuren-cbdb295315016e5bbdb2689d3afa2a086fdcc0ec.zip
edit info/refs manually
-rw-r--r--fit.py6
1 files changed, 5 insertions, 1 deletions
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):