diff options
author | Nico von Geyso <Nico.Geyso@FU-Berlin.de> | 2012-08-12 01:43:59 +0200 |
---|---|---|
committer | Nico von Geyso <Nico.Geyso@FU-Berlin.de> | 2012-08-12 01:43:59 +0200 |
commit | cbdb295315016e5bbdb2689d3afa2a086fdcc0ec (patch) | |
tree | fc2adeb9ef721da311688a4cfb784d51f480bd15 | |
parent | 026a29c495a8665b8af3a7fd6686346a577d32f7 (diff) | |
download | klausuren-cbdb295315016e5bbdb2689d3afa2a086fdcc0ec.tar.gz klausuren-cbdb295315016e5bbdb2689d3afa2a086fdcc0ec.tar.bz2 klausuren-cbdb295315016e5bbdb2689d3afa2a086fdcc0ec.zip |
edit info/refs manually
-rw-r--r-- | fit.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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): |