Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jochen Schulz
haskell_labcourse
Commits
13637e9b
Commit
13637e9b
authored
Mar 14, 2016
by
Christoph Ruegge
Browse files
Fix pre-commit hook
parent
3a2b0db0
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/pre-commit.sh
View file @
13637e9b
...
...
@@ -7,7 +7,7 @@ cd "$(git rev-parse --show-toplevel)"
if
git diff
--cached
--name-only
|
grep
-q
'^exercises/'
;
then
git stash
-q
--keep-index
rm
-f
exercises/
*
.ipynb
git
rm
-f
exercises/
*
.ipynb
for
nb
in
exercises/solutions/
*
.ipynb
;
do
target
=
"exercises/
$(
basename
"
$nb
"
)
"
cat
"
$nb
"
|
$(
git config filter.ipynb-codecells.clean
)
>
"
$target
"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment