git bundle create not work
how to create git bundle from ci in runner between previous and last tag?
I need create git bundle on ci but not work. My stage is:
create-bundle:
stage: bundling
variables:
BU_FILE_NAME: 'last.bundle'
BU_FILE_PATH: 'D:\BU\ProjectName'
before_script:
- $PREVIOUS_VERSION = $(git describe --abbrev=0 --tags (git rev-list --tags --skip=1 --max-count=1))
- $LAST_VERSION = $(git describe --abbrev=0 --tags (git rev-list --tags --max-count=1))
script:
- echo "Start @@@@@@@@@ create-bundle"
- cd $BETA_PATH
- echo $PREVIOUS_VERSION
- echo $LAST_VERSION
- git bundle create $BU_FILE_NAME $CI_DEFAULT_BRANCH $PREVIOUS_VERSION..$LAST_VERSION
- mv -Force $BU_FILE_NAME $BU_FILE_PATH
- git status
only:
- Dev
and this line not work correctly:
git bundle create $BU_FILE_NAME $CI_DEFAULT_BRANCH $PREVIOUS_VERSION..$LAST_VERSION
after many try I find this work:
git bundle create $BU_FILE_NAME $CI_DEFAULT_BRANCH 1.1.7..$LAST_VERSION
how to solve it?