def update_head(self, content):
        try:
            f = open(os.path.join(self.dir, '.git', 'HEAD'), 'w')
            f.write(content)
            f.close()
        except __HOLE__:
            raise GitError, "Write error:\nCannot write into .git/HEAD"
dataset/ETHPy150Open gyim/stupidgit/stupidgit_gui/git.py/Repository.update_head