mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-13 17:43:45 +01:00
List out git remotes on failure
This commit is contained in:
parent
144fec9b17
commit
9dad826716
1 changed files with 1 additions and 0 deletions
|
@ -9,6 +9,7 @@
|
||||||
gitRoot=$(git rev-parse --show-toplevel) || { echo "Please run inside the byjp.fyi git repo"; exit 1; }
|
gitRoot=$(git rev-parse --show-toplevel) || { echo "Please run inside the byjp.fyi git repo"; exit 1; }
|
||||||
if [[ "$(git remote get-url origin)" != "https://github.com/by-jp/byjp.fyi.git" ]]; then
|
if [[ "$(git remote get-url origin)" != "https://github.com/by-jp/byjp.fyi.git" ]]; then
|
||||||
echo "This repo doesn't have the byjp.fyi repo as the origin"
|
echo "This repo doesn't have the byjp.fyi repo as the origin"
|
||||||
|
git remote -v
|
||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
cd $gitRoot
|
cd $gitRoot
|
||||||
|
|
Loading…
Reference in a new issue