Changeset 82410 in spip-zone


Ignore:
Timestamp:
May 15, 2014, 2:13:28 PM (5 years ago)
Author:
cam.lafit@…
Message:

Correctif sur les variables

  • Découpage des information github
  • Définir le nom réel du plugin
File:
1 edited

Legend:

Unmodified
Added
Removed
  • _outils_/svn2git/trunk/git2github.sh

    r82409 r82410  
    1010
    1111#Importer les élements utiles pour Github
    12 GITHUB_REPOSITORY="git@github.com:spip/"
     12GITHUB_REPOSITORY="git@github.com"
     13GITHUB_ORGANIZATION="spip"
     14GITHUB_API_URL="https://api.github.com"
    1315. $(dirname $0)/github_oauth.conf
    1416
     
    2022    fi
    2123
     24    plugin_name=$(basename $dir_plugin)
     25
    2226    #Tester la présence du plugin sur github
    2327    #http://stackoverflow.com/questions/12170459/check-if-git-remote-exists-before-first-push
     
    2731        echo "Ajout du depot github distant pour ${dir_plugin}"
    2832        #http://issues.tmatesoft.com/issue/SGT-634
    29         git --git-dir=${GIT_DIRECTORY}/${dir_plugin}.git remote add github ${GITHUB_REPOSITORY}/$(basename $dir_plugin).git
     33        git --git-dir=${GIT_DIRECTORY}/${dir_plugin}.git remote add github ${GITHUB_REPOSITORY}:${GITHUB_ORGANIZATION}/$plugin_name.git
    3034        git --git-dir=${GIT_DIRECTORY}/${dir_plugin}.git config --add remote.github.push '+refs/heads/*:refs/heads/*'
    3135        git --git-dir=${GIT_DIRECTORY}/${dir_plugin}.git config --add remote.github.push '+refs/tags/*:refs/tags/*'
Note: See TracChangeset for help on using the changeset viewer.