Merge pull request #217 from sarpik/sarpik/make-git-ignore-deleted-readme-and-license
Make git ignore deleted LICENSE & README.md files
This commit is contained in:
commit
debd8c32c8
3
larbs.sh
3
larbs.sh
@ -222,6 +222,9 @@ yes | sudo -u "$name" $aurhelper -S libxft-bgra >/dev/null 2>&1
|
|||||||
# Install the dotfiles in the user's home directory
|
# Install the dotfiles in the user's home directory
|
||||||
putgitrepo "$dotfilesrepo" "/home/$name" "$repobranch"
|
putgitrepo "$dotfilesrepo" "/home/$name" "$repobranch"
|
||||||
rm -f "/home/$name/README.md" "/home/$name/LICENSE"
|
rm -f "/home/$name/README.md" "/home/$name/LICENSE"
|
||||||
|
# make git ignore deleted LICENSE & README.md files
|
||||||
|
git update-index --assume-unchanged "/home/$name/README.md"
|
||||||
|
git update-index --assume-unchanged "/home/$name/LICENSE"
|
||||||
|
|
||||||
# Most important command! Get rid of the beep!
|
# Most important command! Get rid of the beep!
|
||||||
systembeepoff
|
systembeepoff
|
||||||
|
Loading…
Reference in New Issue
Block a user