File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -150,17 +150,17 @@ function list_repo_from_manifest(){
150150 printbranch=${REPO_RREV##* release/ }
151151 fi
152152 url=$( grep url .git/config | grep -v google | grep -v fmtlib | cut -d" :" -f2- | cut -d" /" -f3-)
153- project_name=$( echo $url | cut -d" /" -f2- | tr ' [:upper:]' ' [:lower:]' )
153+ project_name=$( echo $url | cut -d" /" -f2- | cut -d " " -f1 | tr ' [:upper:]' ' [:lower:]' )
154154 REPO_PROJECT=${REPO_PROJECT%* \. git}
155155 if [[ " $REPO_REMOTE " == " githubemu-lightning" ]] ; then
156156 REPO_REMOTE=" emu"
157157 fi
158- # website=`echo $url | cut -d"/" -f1`
159158 if [[ " $REPO_REMOTE " == " roc" ]] ; then
160159 manifest_project=$( echo ROCm/$REPO_PROJECT | tr ' [:upper:]' ' [:lower:]' )
161160 elif [[ " $REPO_REMOTE " == " emu" ]] ; then
162- url=$( grep url .git/config | cut -d" :" -f2- | cut -d" /" -f1- | cut -d" ." -f1)
163- project_name=$( echo $url | cut -d" /" -f2- | tr ' [:upper:]' ' [:lower:]' )
161+ url=$( grep url .git/config)
162+ nogit=${url%* .git}
163+ project_name=${nogit##*/ }
164164 manifest_project=$( echo $REPO_PROJECT | tr ' [:upper:]' ' [:lower:]' | cut -d" ." -f1)
165165 elif [[ " $REPO_REMOTE " == " roctools" ]] ; then
166166 manifest_project=$( echo " ROCm/$REPO_PROJECT " | tr ' [:upper:]' ' [:lower:]' )
You can’t perform that action at this time.
0 commit comments