  import os
  import sys
  import threading
  import capnp
  from selfdrive.version import version, dirty
  
  from selfdrive.swaglog import cloudlog
  from common.hardware import PC
  
  if os.getenv("NOLOG") or os.getenv("NOCRASH") or PC:
 
</s> remove from selfdrive.version import version, dirty
 </s> add from selfdrive.version import version, origin, branch, dirty </s> remove                   install_sys_hook=False, transport=HTTPTransport, release=version, tags={'dirty': dirty})
 </s> add                   install_sys_hook=False, transport=HTTPTransport, release=version, tags=tags) </s> remove                   install_sys_hook=False, transport=HTTPTransport, release=version, tags={'dirty': dirty}, string_max_length=10000)
 </s> add                   install_sys_hook=False, transport=HTTPTransport, release=version, tags=tags, string_max_length=10000)
from selfdrive.version import version, dirty, origin, branch
  import os
  import sys
  import threading
  import capnp
from selfdrive.version import version, dirty, origin, branch
  
  from selfdrive.swaglog import cloudlog
  from common.hardware import PC
  
  if os.getenv("NOLOG") or os.getenv("NOCRASH") or PC:
keep keep keep keep replace keep keep keep keep keep
 log remote and branch in sentry (#16766)

* log remote and branch in sentry

* also add to crash.py

Co-authored-by: Willem Melching <willem.melching@gmail.com> 
selfdrive/crash.py