2024-07-27 16:37:28 +03:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -eu -o pipefail
|
2024-07-27 20:15:02 +03:00
|
|
|
CLI=${1:?The first argument is the GitButler CLI}
|
2024-07-27 16:37:28 +03:00
|
|
|
|
|
|
|
git init remote
|
|
|
|
(cd remote
|
|
|
|
echo first > file
|
|
|
|
git add . && git commit -m "init"
|
|
|
|
)
|
|
|
|
|
|
|
|
git clone remote single-branch-no-vbranch
|
|
|
|
|
|
|
|
git clone remote single-branch-no-vbranch-multi-remote
|
|
|
|
(cd single-branch-no-vbranch-multi-remote
|
|
|
|
git remote add other-origin ../remote
|
|
|
|
git fetch other-origin
|
|
|
|
)
|
|
|
|
|
2024-07-27 20:15:02 +03:00
|
|
|
export GITBUTLER_CLI_DATA_DIR=./git/gitbutler/app-data
|
|
|
|
git clone remote one-vbranch-on-integration
|
|
|
|
(cd one-vbranch-on-integration
|
|
|
|
$CLI project add --switch-to-integration "$(git rev-parse --symbolic-full-name @{u})"
|
|
|
|
$CLI branch create virtual
|
|
|
|
)
|
2024-07-27 16:37:28 +03:00
|
|
|
|