Skip to content
This repository was archived by the owner on Jun 22, 2021. It is now read-only.

Commit ed7cf33

Browse files
author
Tonye Jack
committed
Fixed unstaged files.
1 parent 645c2c3 commit ed7cf33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.pre-commit-hooks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
- id: graphene-django-hook
22
name: graphene django schema hook
33
description: Generate graphql schema.
4-
entry: python manage.py graphql_schema
4+
entry: if [ $(git diff --cached --name-only | wc -l) -eq 1 ]; then echo "Unstaged changes" && exit 1; else python manage.py graphql_schema; fi
55
language: system
66
always_run: true
77
pass_filenames: false

0 commit comments

Comments
 (0)