improve my fork workflow

- always go to new copy of the cloned repository after forking it
- always set the local repo user config after the fork
- always check for spelling mistakes in the forked repo readme files
  just in case
This commit is contained in:
MorganGeek 2020-07-23 07:32:35 +02:00
parent ac7bfb46f8
commit 91c41d33cb

View File

@ -559,10 +559,15 @@ function clone() {
fi fi
} }
function fork() { function fork() {
# FIXME : go to local copy of the repo after the fork code || exit
code
local folder=$(basename $1 | sed 's/\.git.*//g') local folder=$(basename $1 | sed 's/\.git.*//g')
gh repo fork "$1" gh repo fork "$1" --clone && cd "$folder"
if [[ "$1:u" =~ "$COMPANY_NAME:u" ]]; then
gitpro
else
gitperso
fi
checkenlist README*
} }
function git-project() { function git-project() {
if [ -d "$REPO_PATH" ]; then if [ -d "$REPO_PATH" ]; then