From: MEBIL Date: Tue, 1 Aug 2017 12:14:08 +0000 (+0200) Subject: mebil X-Git-Tag: kivitendo-mebil_0.1-0~29 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=7c1f4f776e6c5651c35374549c23dc9d3e486648;p=kivitendo-erp.git mebil --- diff --git a/build/kivitendo.co b/build/kivitendo.co index e8474d273..85ade5a82 100755 --- a/build/kivitendo.co +++ b/build/kivitendo.co @@ -4,20 +4,28 @@ set -e # parameter: $1: git tag to build # options: -g -repos="https://github.com/wagner-tech" -if getopts "g:" opt; then - repos=$OPTARG - shift 2 -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 -if [ -d 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 +# alternativer Versuch: Es wird das lokale Repository geklont: + +git clone ../.. +pushd kivitendo-erp >/dev/null git checkout $1 popd >/dev/null +