def write_git_file():
 gitstr = _git_str()
 if (gitstr is None):
  gitstr = ''
 path = os.path.join(BASEDIR, 'qutebrowser', 'git-commit-id')
 with _open(path, 'w', encoding='ascii') as f:
  f.write(gitstr)

def write_git_file ( ) : gitstr = _git_str ( ) if ( gitstr is None ) : gitstr = '' path = os . path . join ( BASEDIR , 'qutebrowser' , 'git-commit-id' ) with _open ( path , 'w' , encoding = 'ascii' ) as f : f . write ( gitstr )
write the git-commit-id file with the current commit .