projects
/
valse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
03258aa
)
Simplfy initialize.sh script
author
Benjamin Auder
<benjamin.auder@somewhere>
Fri, 8 Jan 2021 15:18:52 +0000
(16:18 +0100)
committer
Benjamin Auder
<benjamin.auder@somewhere>
Fri, 8 Jan 2021 15:18:52 +0000
(16:18 +0100)
initialize.sh
patch
|
blob
|
blame
|
history
diff --git
a/initialize.sh
b/initialize.sh
index
48f0ba1
..
3525942
100755
(executable)
--- a/
initialize.sh
+++ b/
initialize.sh
@@
-1,4
+1,5
@@
#!/bin/sh
#!/bin/sh
+# Script for devs
#initialize submodules, set-up .git/config and .gitattributes, and pre-push hook
git submodule init && git submodule update --merge
#initialize submodules, set-up .git/config and .gitattributes, and pre-push hook
git submodule init && git submodule update --merge
@@
-24,11
+25,4
@@
echo 'if (! "formatR" %in% rownames(installed.packages()))
#.gitfat file with remote on gitfat@auder.net
printf '[rsync]\nremote = gitfat@auder.net:~/files/valse\n' > .gitfat
#.gitfat file with remote on gitfat@auder.net
printf '[rsync]\nremote = gitfat@auder.net:~/files/valse\n' > .gitfat
-#manual git-fat init: with relative path to binary
-#1] remove filter if exists http://stackoverflow.com/a/12179641/4640434
-sed -i '1N;$!N;s/\[filter "fat"\]\n.*\n.*//;P;D' .git/config
-#2] place new filter
-printf \
-'[filter "fat"]
- clean = ./.git-fat/git-fat filter-clean
- smudge = ./.git-fat/git-fat filter-smudge\n' >> .git/config
+#Now run git-fat init :)