mirror of
https://github.com/jupyter/notebook.git
synced 2024-11-27 03:20:27 +08:00
add git hooks for submodules
A much less intrusive version of #3274 that has effect on checkout / pull / merge, rather than setup.py. It does require a user install step, because you cannot add active hooks to a repo.
This commit is contained in:
parent
331326a27b
commit
677cdd33f2
13
git-hooks/README.md
Normal file
13
git-hooks/README.md
Normal file
@ -0,0 +1,13 @@
|
||||
git hooks for IPython
|
||||
|
||||
add these to your `.git/hooks`
|
||||
|
||||
For now, we just have `post-checkout` and `post-merge`,
|
||||
both of which just update submodules,
|
||||
so make sure that you have a fully synced repo whenever you checkout or pull.
|
||||
|
||||
To use these hooks, you can symlink or copy them to your `.git/hooks` directory.
|
||||
|
||||
ln -s ../../git-hooks/post-checkout .git/hooks/post-checkout
|
||||
ln -s ../../git-hooks/post-merge .git/hooks/post-merge
|
||||
|
4
git-hooks/post-checkout
Executable file
4
git-hooks/post-checkout
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
git submodule init
|
||||
git submodule update
|
4
git-hooks/post-merge
Executable file
4
git-hooks/post-merge
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
git submodule init
|
||||
git submodule update
|
Loading…
Reference in New Issue
Block a user