fixup! build: Add privateremote helper

Change-Id: I09c52df9e9dc7c5a825e641d6299581432591920
This commit is contained in:
Michael Bestas
2024-12-20 00:07:51 +02:00
parent e73fac89db
commit 5bbc612621

View File

@@ -330,9 +330,7 @@ function privateremote()
return 1 return 1
fi fi
git remote rm private 2> /dev/null git remote rm private 2> /dev/null
local REMOTE=$(git config --get remote.github.projectname) local PROJECT=$(git config --get remote.github.projectname)
local PROJECT=$(echo $REMOTE | sed -e "s#https://github.com/##g")
git remote add private git@github.com:$PROJECT.git git remote add private git@github.com:$PROJECT.git
echo "Remote 'private' created" echo "Remote 'private' created"