mirror of
https://github.com/emacscollective/emacs.g.git
synced 2025-07-05 16:37:39 -04:00
Emacsg: Allow this repository itself to be a submodule
Closes #30. Closes emacscollective/borg#154.
This commit is contained in:
parent
ad3ab82f65
commit
69d6b1b565
7
Makefile
7
Makefile
@ -10,9 +10,10 @@ help helpall::
|
||||
@printf "\n"
|
||||
|
||||
bootstrap-borg:
|
||||
@mkdir .git/modules
|
||||
@git clone https://github.com/emacscollective/borg lib/borg \
|
||||
--separate-git-dir .git/modules/borg
|
||||
@ GITDIR="$$(realpath --relative-to=. "$$(git rev-parse --git-dir)")"; \
|
||||
mkdir "$$GITDIR/modules"; \
|
||||
git clone https://github.com/emacscollective/borg lib/borg \
|
||||
--separate-git-dir "$$GITDIR/modules/borg"
|
||||
@cd lib/borg; git symbolic-ref HEAD refs/heads/main
|
||||
@cd lib/borg; git reset --hard HEAD
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user