Skip to content

Commit 10d2015

Browse files
committed
Fix the list option of clone_aomp.sh
1 parent b5a0b92 commit 10d2015

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bin/clone_aomp.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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:]')

0 commit comments

Comments
 (0)