def delete_ref(refname, oldvalue=None):
 assert refname.startswith('refs/')
 oldvalue = ([] if (not oldvalue) else [oldvalue])
 p = subprocess.Popen((['git', 'update-ref', '-d', refname] + oldvalue), preexec_fn=_gitenv())
 _git_wait('git update-ref', p)

def delete_ref ( refname , oldvalue = None ) : assert refname . startswith ( 'refs/' ) oldvalue = ( [ ] if ( not oldvalue ) else [ oldvalue ] ) p = subprocess . Popen ( ( [ 'git' , 'update-ref' , '-d' , refname ] + oldvalue ) , preexec_fn = _gitenv ( ) ) _git_wait ( 'git update-ref' , p )
delete a repository reference (see git update-ref(1)) .