From: Benjamin Auder Date: Mon, 30 Jan 2017 00:33:26 +0000 (+0100) Subject: re-add modules as hidden folders X-Git-Url: https://git.auder.net/DESCRIPTION?a=commitdiff_plain;h=1ddd1df290e5a3fe96c01acef64384a2353240d2;p=epclust.git re-add modules as hidden folders --- diff --git a/.git-fat b/.git-fat new file mode 160000 index 0000000..286bcd3 --- /dev/null +++ b/.git-fat @@ -0,0 +1 @@ +Subproject commit 286bcd30cea5f86363a04a9313afaf9e2e7a7b81 diff --git a/.gitmodules b/.gitmodules index e69de29..9e1c85b 100644 --- a/.gitmodules +++ b/.gitmodules @@ -0,0 +1,6 @@ +[submodule ".ppam-mpi"] + path = .ppam-mpi + url = git@auder.net:ppam-mpi +[submodule ".git-fat"] + path = .git-fat + url = https://github.com/yagu0/git-fat.git diff --git a/.ppam-mpi b/.ppam-mpi new file mode 160000 index 0000000..ecd8468 --- /dev/null +++ b/.ppam-mpi @@ -0,0 +1 @@ +Subproject commit ecd8468e7849636d2ced2012b5fa0ac4389da3ea diff --git a/initialize.sh b/initialize.sh index a596694..2ed401a 100755 --- a/initialize.sh +++ b/initialize.sh @@ -5,11 +5,11 @@ git submodule init && git submodule update --merge #filter for git-fat echo -e '*.pdf filter=fat\n*.tar.xz filter=fat' > .gitattributes #pre-push hook: git fat push, submodules update -echo -e '#!/bin/sh\ngit fat push\ngit submodule update --merge' > .git/hooks/pre-push +echo -e '#!/bin/sh\n./.git-fat/git-fat push\ngit submodule update --merge' > .git/hooks/pre-push #.gitfat file with remote on gitfat@auder.net echo -e '[rsync]\nremote = gitfat@auder.net:~/files' > .gitfat #manual git-fat init: with relative path to binary #1] remove filter if exists http://stackoverflow.com/questions/12179437/replace-3-lines-with-another-line-sed-syntax sed -i '1N;$!N;s/\[filter "fat"\]\n.*\n.*//;P;D' .git/config #2] place new filter -echo -e '[filter "fat"]\n\tclean = ./git-fat/git-fat filter-clean\n\tsmudge = ./git-fat/git-fat filter-smudge' >> .git/config +echo -e '[filter "fat"]\n\tclean = ./.git-fat/git-fat filter-clean\n\tsmudge = ./.git-fat/git-fat filter-smudge' >> .git/config