Init script will reset this from https to ssh.
This commit is contained in:
parent
6d3554d18d
commit
baa1af26a4
14
lib/makefile
14
lib/makefile
|
@ -8,8 +8,18 @@ include ../lib/shared.mk
|
||||||
install: | init update
|
install: | init update
|
||||||
|
|
||||||
init:
|
init:
|
||||||
$(report) header "Setting up githook"
|
$(report) header "Setting up this stuff"
|
||||||
$(report) pass "Symlinked `ln -svf $(GIT_HOOK_SRC) $(GIT_HOOK_TARGET)`"
|
$(report) pass "githook symlinked `ln -svf $(GIT_HOOK_SRC) $(GIT_HOOK_TARGET)`"
|
||||||
|
$(MAKE) -C $(SRC_DIR) fix_http_repo
|
||||||
|
|
||||||
|
fix_http_repo:
|
||||||
|
cd $(SRC_DIR)
|
||||||
|
if [[ $$(git remote get-url origin) == http* ]] ; then
|
||||||
|
git remote set-url origin git@git.jpatrick.io:james/dotfiles.git \
|
||||||
|
; $(report) "Reseting git remote http(s) -> ssh repo"
|
||||||
|
else
|
||||||
|
$(report) debug "git repo deosn't start with http. So no need to reset remote."
|
||||||
|
fi
|
||||||
|
|
||||||
update:
|
update:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user