File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -122,12 +122,13 @@ output
122122output " ${normal} You are about to push:"
123123for b in " ${allbranches[@]} " ; do
124124 versionpath=version.php
125- if [ ! -f $versionpath ]; then
125+ git cat-file -e origin/${b} :$versionpath > /dev/null 2>&1
126+ if [ $? -ne 0 ]; then
126127 versionpath=public/version.php
127128 fi
128129
129130 # Search for a 'real' release by ensuring the top commit on version.php changes $release and was recent.
130- releasebumped=$( git show --since=' 8 hours ago' -n1 origin/${b} $versionpath | grep " +\$ release\s*=\s*" )
131+ releasebumped=$( git show --since=' 8 hours ago' -n1 origin/${b} -- $versionpath | grep " +\$ release\s*=\s*" )
131132 if [[ -n ${releasebumped} || $_skip_version_check ]]; then
132133 output " ${G} $b : ${normal} $( git log -n1 --pretty=format:" %s (%an %ar)" origin/$b ) "
133134 # Check if between the last commit in the branch and now, it has been PUBLISHING_TIME (UTC)
You can’t perform that action at this time.
0 commit comments