Allow branch specification in bootstrap.sh
This commit is contained in:
@@ -12,12 +12,14 @@ function ensureDocopts() {
|
|||||||
function cloneMacOSSystemRepo() {
|
function cloneMacOSSystemRepo() {
|
||||||
local repoUrl="${MACOS_SYSTEM_REPO_URL:-https://github.com/astzweig/macos-system.git}"
|
local repoUrl="${MACOS_SYSTEM_REPO_URL:-https://github.com/astzweig/macos-system.git}"
|
||||||
git clone -q "${repoUrl}" .
|
git clone -q "${repoUrl}" .
|
||||||
|
[ -n "${MACOS_SYSTEM_REPO_BRANCH}" ] && git checkout ${MACOS_SYSTEM_REPO_BRANCH} 2> /dev/null || true
|
||||||
}
|
}
|
||||||
|
|
||||||
function cloneZSHLibRepo() {
|
function cloneZSHLibRepo() {
|
||||||
local zshlibRepoUrl="${ZSHLIB_REPO_URL:-https://github.com/astzweig/zshlib.git}"
|
local zshlibRepoUrl="${ZSHLIB_REPO_URL:-https://github.com/astzweig/zshlib.git}"
|
||||||
git config --file=.gitmodules submodule.zshlib.url "${zshlibRepoUrl}"
|
git config --file=.gitmodules submodule.zshlib.url "${zshlibRepoUrl}"
|
||||||
git submodule -q sync
|
git submodule -q sync
|
||||||
|
[ -n "${ZSHLIB_REPO_BRANCH}" ] && git submodule set-branch -b ${ZSHLIB_REPO_BRANCH} `git config --file=.gitmodules submodule.zshlib.path` 2> /dev/null || true
|
||||||
git submodule -q update --init --recursive --remote
|
git submodule -q update --init --recursive --remote
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user