File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -598,11 +598,13 @@ def ensure_sha():
598598 """Ensure the sha of the remote branch matches the expected sha"""
599599 current_sha = os .environ ["RH_CURRENT_SHA" ]
600600 branch = os .environ ["RH_BRANCH" ]
601+ log ("Ensuring sha..." )
601602 remote_name = get_remote_name (False )
602- run (f"git fetch { remote_name } { branch } " )
603- sha = run (f"git rev-parse { remote_name } /{ branch } " )
603+ run ("git remote -v" , echo = True )
604+ run (f"git fetch { remote_name } { branch } " , echo = True )
605+ sha = run (f"git rev-parse { remote_name } /{ branch } " , echo = True )
604606 if sha != current_sha :
605- raise ValueError (f"{ branch } is ahead of expected sha { current_sha } " )
607+ raise ValueError (f"{ branch } current sha { sha } is not equal to expected sha { current_sha } " )
606608
607609
608610def get_gh_object (dry_run = False , ** kwargs ):
You can’t perform that action at this time.
0 commit comments