mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Fix sysroot-source git clone not escaping the current directory.
This commit is contained in:
parent
3a874e7f40
commit
4c089a01d6
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -185,7 +185,7 @@ sysroot-system: sysroot-fsh sysroot-base-headers
|
|||
sysroot-source: sysroot-fsh
|
||||
ifeq ($(SORTIX_INCLUDE_SOURCE),git)
|
||||
rm -rf "$(SYSROOT)/src"
|
||||
git clone --no-hardlinks $(SORTIX_INCLUDE_SOURCE_GIT_CLONE_OPTIONS) -- $(SORTIX_INCLUDE_SOURCE_GIT_REPO) "$(SYSROOT)/src"
|
||||
git clone --no-hardlinks $(SORTIX_INCLUDE_SOURCE_GIT_CLONE_OPTIONS) -- "$(SORTIX_INCLUDE_SOURCE_GIT_REPO)" "$(SYSROOT)/src"
|
||||
-cd "$(SYSROOT)/src" && for BRANCH in $(SORTIX_INCLUDE_SOURCE_GIT_BRANCHES); do \
|
||||
git fetch origin $$BRANCH && \
|
||||
(git branch -f $$BRANCH FETCH_HEAD || true) ; \
|
||||
|
|
Loading…
Reference in a new issue