mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-20 06:07:59 +00:00
parent
a6acdac1cf
commit
a6d7d5da07
@ -8,6 +8,9 @@ SHELL := bash
|
||||
VERBOSE ?= @
|
||||
ECHO := echo -e
|
||||
|
||||
# limit destructive git operations (e.g., reset) to local directory
|
||||
GIT := git --git-dir=.git
|
||||
|
||||
BRIGHT_COL ?= \x1b[01;33m
|
||||
DARK_COL ?= \x1b[00;33m
|
||||
DEFAULT_COL ?= \x1b[0m
|
||||
|
@ -162,7 +162,7 @@ _git_dir = $(call _assert,$(DIR($1)),Missing declaration of DIR($*))
|
||||
test -d $$dir || $(MSG_DOWNLOAD)$(URL($*)); \
|
||||
test -d $$dir || git clone $(URL($*)) $$dir &> >(sed 's/^/$(MSG_GIT)/'); \
|
||||
$(MSG_UPDATE)$$dir; \
|
||||
cd $$dir && git fetch && git reset -q --hard HEAD && git checkout -q $(REV($*))
|
||||
cd $$dir && $(GIT) fetch && $(GIT) reset -q --hard HEAD && $(GIT) checkout -q $(REV($*))
|
||||
|
||||
|
||||
##
|
||||
|
Loading…
Reference in New Issue
Block a user