packed_refs = readfile(os.path.join(path, 'packed-refs'))
if os.path.exists(origin_path) or 'refs/remotes/origin/' in packed_refs:
cmd = ['git', '--git-dir', path, 'remote', 'prune', 'origin']
packed_refs = readfile(os.path.join(path, 'packed-refs'))
if os.path.exists(origin_path) or 'refs/remotes/origin/' in packed_refs:
cmd = ['git', '--git-dir', path, 'remote', 'prune', 'origin']