Commit c3352701 authored by nimrod's avatar nimrod
Browse files

- Added git hooks directory and installation instructions to README, for now...

- Added git hooks directory and installation instructions to README, for now just regenerate the SSH config after merge (and therefore pull).
parent f6d49c15
Loading
Loading
Loading
Loading

.githooks/post-merge

0 → 100755
+4 −0
Original line number Diff line number Diff line
#!/bin/sh
set -eu
. .bashrc
gen-ssh-config
+3 −0
Original line number Diff line number Diff line
@@ -20,6 +20,9 @@ WARNING: This will overwrite your existing files.
    cd ..
    rm -r rcfiles
    git submodule update --init --recursive
    cd .githooks/
    find  -type f -exec ln -sf ../../.githooks/{} ../.git/hooks/ \;
    cd ../

In older versions of Git the paths in the submodules are obsolete and thus need
to be corrected (before fetching them). The correction needs to be done in the