Release Candidate 2
This commit is contained in:
		
							parent
							
								
									e24027ea57
								
							
						
					
					
						commit
						154a8c398b
					
				@ -629,7 +629,12 @@ EOS
 | 
			
		||||
    # the refspec ensures that the default upstream branch gets updated
 | 
			
		||||
    (
 | 
			
		||||
      UPSTREAM_REPOSITORY_URL="$(git config remote.origin.url)"
 | 
			
		||||
      UPSTREAM_REPOSITORY_URL_PARSED=( $(url_get "${UPSTREAM_REPOSITORY_URL}" user pass host path) )
 | 
			
		||||
      eval UPSTREAM_REPOSITORY_URL_PARSED=( $(url_get "${UPSTREAM_REPOSITORY_URL}" user pass host path) )
 | 
			
		||||
      if [[ ${#UPSTREAM_REPOSITORY_URL_PARSED[@]} -ne 4 ]]; then
 | 
			
		||||
        echo "Failed to parse repository URL=${UPSTREAM_REPOSITORY_URL} \!" >&2
 | 
			
		||||
        exit
 | 
			
		||||
      fi
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
      # HOMEBREW_GITHUB_API_TOKEN is optionally defined in the user environment.
 | 
			
		||||
      # can be supersede by local repository URL
 | 
			
		||||
 | 
			
		||||
@ -44,8 +44,8 @@ url_get() {
 | 
			
		||||
  fi
 | 
			
		||||
 | 
			
		||||
  while [[ ${#} -gt 0 ]]; do
 | 
			
		||||
    echo -n "$(eval echo -n "\${_${1}}")"
 | 
			
		||||
    [[ ${#} -gt 1 ]] && echo -n ${IFS}
 | 
			
		||||
    echo -n \""$(eval echo -n "\${_${1}}")"\"
 | 
			
		||||
    [[ ${#} -gt 1 ]] && echo -n "${IFS:- }"
 | 
			
		||||
    shift
 | 
			
		||||
  done
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user