mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Fix bug - pushing on an empty changeset
This commit is contained in:
parent
f71568aabb
commit
e216b0b2cc
1 changed files with 7 additions and 1 deletions
|
|
@ -11,4 +11,10 @@ do
|
|||
fi
|
||||
done
|
||||
|
||||
args="$args --hook-stage push"
|
||||
if [ "args" != "" ]; then
|
||||
args="$args --hook-stage push"
|
||||
else
|
||||
# If args is empty, then an attempt to push on an empty
|
||||
# changeset is being made. In this case, just exit cleanly
|
||||
exit 0
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue