File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -142,27 +142,29 @@ initialize_repo() {
142142 printf ' Do you want to reinitialize this git repo? [y/N] '
143143 read -r yn
144144 [[ ! " $yn " = " y" ]] && exit
145- git init
145+ # git init
146146 arrIN=(${@// \/ / } )
147147 if [[ " ${arrIN[0]} " == " ssh" ]]; then
148148 AUTHOR_GIT_SSH=${AUTHOR_GIT/ http[s]: \/\/ / git@ }
149+ AUTHOR_GIT_SSH=${AUTHOR_GIT_SSH/ \/ /: }
149150 remote=" $AUTHOR_GIT_SSH ${arrIN[1]} .git"
150- git remote add origin " ${remote} "
151+ echo git remote add origin " ${remote} "
151152 else
152153 remote=" $AUTHOR_GIT ${1} .git"
153- git remote add origin " ${remote} "
154+ echo git remote add origin " ${remote} "
154155 fi
155156 return
156157 else
157158 git init
158159 arrIN=(${@// \/ / } )
159160 if [[ " ${arrIN[0]} " == " ssh" ]]; then
160161 AUTHOR_GIT_SSH=${AUTHOR_GIT/ http[s]: \/\/ / git@ }
162+ AUTHOR_GIT_SSH=${AUTHOR_GIT_SSH/ \/ /: }
161163 remote=" $AUTHOR_GIT_SSH ${arrIN[1]} .git"
162- remote add origin " ${remote} "
164+ echo git remote add origin " ${remote} "
163165 else
164166 remote=" $AUTHOR_GIT ${1} .git"
165- remote add origin " ${remote} "
167+ echo git remote add origin " ${remote} "
166168 fi
167169 return
168170 fi
You can’t perform that action at this time.
0 commit comments