Add help and fix problem with Host name set for new clone

The host name ise set as ssh config entry with ssh key, so we use the short name set for the remote host name
This commit is contained in:
2025-11-17 11:12:54 +09:00
parent 329f3abb6b
commit 08e9ff9e67
4 changed files with 22 additions and 11 deletions

View File

@@ -7,6 +7,10 @@
REPOSITORY="$1";
BRANCH="$2";
REMOTE_NAME="$3";
if [ "${REPOSITORY}" == "--help" ]; then
echo "$0 <Repo.git> <branch> [<remote name, defaults to origin>]";
exit;
fi;
if [ -z "${REMOTE_NAME}" ]; then
REMOTE_NAME="origin"
fi;