templates/install/process.import.git.sh.twig line 1

Open in your IDE?
  1. terminal-save
  2. echo
  3. echo "Initialisation de GIT"
  4. cd $projectDestPath
  5. if [ "$projectGitLevel" = "1" ]; then
  6.   cd $projectTheme
  7. fi
  8. git remote set-url origin $projectGit
  9. git fetch origin || {
  10.   echo
  11.   echo "Erreur d'accès à Gitlab $projectGit"
  12.   echo "Demandez un accès au projet !"
  13.   echo
  14.   exit 1
  15. }
  16. # checkout to default branch
  17. git checkout $(git remote show origin | sed -n '/HEAD/s/.*: //p')
  18. git clean -fd
  19. # install submodules
  20. git submodule update --init --recursive
  21. # disable chmod file changes
  22. git config --global core.fileMode false
  23. git config core.fileMode false
  24. # activate rerere https://git-scm.com/book/fr/v2/Utilitaires-Git-Rerere
  25. git config --global rerere.enabled true
  26. git config rerere.enabled true
  27. terminal-restore
  28. echo -e " + GIT \e[1;92mInitialisé\e[0m"