X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=build%2Fkivitendo.co;h=d3d0f478a3a7e91de118c5fc52cb2309ef504792;hb=bd25baf67d259c1b805951dfd92a310766c13661;hp=3d40317badcb5c712a36866a8fdff1088252768d;hpb=7555773739acb7e65602bff163ab4f9548e0f19a;p=kivitendo-erp.git diff --git a/build/kivitendo.co b/build/kivitendo.co index 3d40317ba..d3d0f478a 100755 --- a/build/kivitendo.co +++ b/build/kivitendo.co @@ -2,14 +2,31 @@ set -e # parameter: $1: git tag to build +# options: -g -if [ -d kivitendo-erp ] -then - pushd kivitendo-erp >/dev/null - git fetch -else - git clone https://github.com/wagner-tech/kivitendo-erp - pushd kivitendo-erp >/dev/null -fi +#repos="https://github.com/wagner-tech" +#if getopts "g:" opt; then +# repos=$OPTARG +# shift 2 +#fi +# +#if [ -e kivitendo-erp ] +#then +# pushd kivitendo-erp >/dev/null + #branch=$(git rev-parse --abbrev-ref HEAD) + #git pull origin $branch +#else +# git clone $repos/kivitendo-erp +# pushd kivitendo-erp >/dev/null +#fi +# git checkout $1 +#popd >/dev/null + +# alternativer Versuch: Es wird das lokale Repository geklont: + +cwd=$(pwd) +git clone ${cwd%/build/src} +pushd kivitendo-erp >/dev/null git checkout $1 popd >/dev/null +