replicate.sh: Finally fix the damn submodule update process
This commit is contained in:
parent
950c2240c4
commit
f1b69f646b
@ -1,8 +1,8 @@
|
||||
#!/bin/sh
|
||||
tempfolder="/tmp/dots`uuidgen`"
|
||||
tempfolder="/tmp/dots"
|
||||
gitdir="$HOME/.dotfiles"
|
||||
git clone --recursive --separate-git-dir="$gitdir" git@gitlab.com:rehashedsalt/home.git $tempfolder
|
||||
rsync -rvl --exclude ".git" $tempfolder/ $HOME/
|
||||
rm -r $tempfolder
|
||||
git submodule update --init --recursive --remote --git-dir="$gitdir" --work-tree="$HOME" $HOME/
|
||||
git config --git-dir="$gitdir" status.showUntrackedFiles no
|
||||
git --git-dir="$gitdir" --work-tree="$HOME" submodule update --init --recursive --remote
|
||||
git --git-dir="$gitdir" --work-tree="$HOME" status.showUntrackedFiles no
|
||||
|
Loading…
Reference in New Issue
Block a user