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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user