Changeset 82413 in spip-zone


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

Mettre à jour les depots avec le bon compte, c'est mieux

File:
1 edited

Legend:

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

    r82412 r82413  
    3131    #Tester la présence du plugin sur github
    3232    #http://stackoverflow.com/questions/12170459/check-if-git-remote-exists-before-first-push
    33     git --git-dir=${GIT_DIRECTORY}/${dir_plugin}.git ls-remote github -q 2>/dev/null
     33    su - gitosis -c "git --git-dir=${GIT_DIRECTORY}/${dir_plugin}.git ls-remote github -q 2>/dev/null"
    3434
    3535    if [ "$?" -ne "0" ]; then
    3636        echo "Ajout du depot github distant pour ${dir_plugin}"
    3737        #http://issues.tmatesoft.com/issue/SGT-634
    38         git --git-dir=${GIT_DIRECTORY}/${dir_plugin}.git remote add github ${GITHUB_REPOSITORY}:${GITHUB_ORGANIZATION}/$plugin_name.git
    39         git --git-dir=${GIT_DIRECTORY}/${dir_plugin}.git config --add remote.github.push '+refs/heads/*:refs/heads/*'
    40         git --git-dir=${GIT_DIRECTORY}/${dir_plugin}.git config --add remote.github.push '+refs/tags/*:refs/tags/*'
     38        su - gitosis -c "git --git-dir=${GIT_DIRECTORY}/${dir_plugin}.git remote add github ${GITHUB_REPOSITORY}:${GITHUB_ORGANIZATION}/$plugin_name.git"
     39        su - gitosis -c "git --git-dir=${GIT_DIRECTORY}/${dir_plugin}.git config --add remote.github.push '+refs/heads/*:refs/heads/*'"
     40        su - gitosis -c "git --git-dir=${GIT_DIRECTORY}/${dir_plugin}.git config --add remote.github.push '+refs/tags/*:refs/tags/*'"
    4141    fi
    4242done
Note: See TracChangeset for help on using the changeset viewer.