Changeset 121581 in spip-zone


Ignore:
Timestamp:
Feb 4, 2020, 1:28:55 PM (2 weeks ago)
Author:
root
Message:

Exporter un depot git vers un chemin svn precis

Location:
_outils_/importToGitea/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _outils_/importToGitea/trunk

    • Property subgit:lock:2eb5edd60d15d2d2cc5b6e3ce1eee152db2432e0 deleted
    • Property subgit:lock:d201633dce85d02b7cc55369b71e12b34c34edfb set to 2020-02-04T14:29:30.862
  • _outils_/importToGitea/trunk/ExportToSvn.sh

    r116294 r121581  
    2525    shift # past value
    2626    ;;
     27    -t|--target)
     28    TARGET="$2"
     29    shift # past argument
     30    shift # past value
     31    ;;
    2732    -h|--help)
    2833    shift # past argument
     
    3136        printf "  -o <organization> or --orgnanization <organization> \\t gitea organization where to import repository."
    3237        printf "  -m <model> or --model <model> \\t\\t specify the model svn structure to respect (dist or zone)"
     38        printf "  -t <root svn> or --target <root svn> \\t\\t Specify target to prefix svn path before repository name"
    3339        exit 0
    3440    ;;
     
    8591sudo -u git -s subgit configure --svn-url svn://svn.tld "$repo_source"
    8692cp "models/${MODEL}.conf" "$repo_source/subgit/config"
    87 sed -i "s/__PLUGIN__/$REPOSITORY/" "$repo_source/subgit/config"
     93sed -i "s/__PLUGIN__/$TARGET$REPOSITORY/" "$repo_source/subgit/config"
    8894#Load gitea hooks
    8995rename 's/(hooks\/)(.*receive).d$/$1user-$2.d/' hooks/*
Note: See TracChangeset for help on using the changeset viewer.