Skip to content
Snippets Groups Projects
  • Josh Rosen's avatar
    97e0c7c5
    [SPARK-9383][PROJECT-INFRA] PR merge script should reset back to previous branch when possible · 97e0c7c5
    Josh Rosen authored
    This patch modifies our PR merge script to reset back to a named branch when restoring the original checkout upon exit. When the committer is originally checked out to a detached head, then they will be restored back to that same ref (the same as today's behavior).
    
    This is a slightly updated version of #7569, with an extra fix to handle the detached head corner-case.
    
    Author: Josh Rosen <joshrosen@databricks.com>
    
    Closes #10709 from JoshRosen/SPARK-9383.
    97e0c7c5
    History
    [SPARK-9383][PROJECT-INFRA] PR merge script should reset back to previous branch when possible
    Josh Rosen authored
    This patch modifies our PR merge script to reset back to a named branch when restoring the original checkout upon exit. When the committer is originally checked out to a detached head, then they will be restored back to that same ref (the same as today's behavior).
    
    This is a slightly updated version of #7569, with an extra fix to handle the detached head corner-case.
    
    Author: Josh Rosen <joshrosen@databricks.com>
    
    Closes #10709 from JoshRosen/SPARK-9383.