mirror of
https://github.com/SchildiChat/schildichat-desktop.git
synced 2025-04-01 13:44:26 +02:00
Update upstream remote for add_upstream
This commit is contained in:
parent
b214e8d568
commit
055866f599
@ -12,16 +12,16 @@ yarn=yarnpkg
|
|||||||
|
|
||||||
add_upstream() {
|
add_upstream() {
|
||||||
if git remote | grep -q upstream; then
|
if git remote | grep -q upstream; then
|
||||||
echo "Remote named upstream already exists!"
|
echo "Remote named upstream already exists, deleting..."
|
||||||
return 1
|
git remote remove upstream
|
||||||
fi
|
fi
|
||||||
local sc_remote="$(git remote -v|grep origin|grep fetch|sed 's|.*\t\(.*\) (fetch)|\1|')"
|
local sc_remote="$(git remote -v|grep origin|grep fetch|sed 's|.*\t\(.*\) (fetch)|\1|')"
|
||||||
if echo "$sc_remote" | grep -q matrix; then
|
if echo "$sc_remote" | grep -q matrix-js-sdk; then
|
||||||
# matrix.org repo
|
# matrix.org repo
|
||||||
local upstream_remote="$(echo "$sc_remote" | sed 's|SchildiChat|matrix-org|')"
|
local upstream_remote="$(echo "$sc_remote" | sed 's|SchildiChat|matrix-org|')"
|
||||||
elif echo "$sc_remote" | grep -q element; then
|
elif echo "$sc_remote" | grep -q "element\\|matrix-react-sdk"; then
|
||||||
# vector-im repo
|
# vector-im repo
|
||||||
local upstream_remote="$(echo "$sc_remote" | sed 's|SchildiChat|vector-im|')"
|
local upstream_remote="$(echo "$sc_remote" | sed 's|SchildiChat|element-hq|')"
|
||||||
else
|
else
|
||||||
echo "Don't know upstream repo for $sc_remote"
|
echo "Don't know upstream repo for $sc_remote"
|
||||||
return 1
|
return 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user