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():
598
598
"""Ensure the sha of the remote branch matches the expected sha"""
599
599
current_sha = os .environ ["RH_CURRENT_SHA" ]
600
600
branch = os .environ ["RH_BRANCH" ]
601
+ log ("Ensuring sha..." )
601
602
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 )
604
606
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 } " )
606
608
607
609
608
610
def get_gh_object (dry_run = False , ** kwargs ):
You can’t perform that action at this time.
0 commit comments