Skip to content

Commit e216b0b

Browse files
committed
Fix bug - pushing on an empty changeset
1 parent f71568a commit e216b0b

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

pre_commit/resources/pre-push-tmpl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,10 @@ do
1111
fi
1212
done
1313

14-
args="$args --hook-stage push"
14+
if [ "args" != "" ]; then
15+
args="$args --hook-stage push"
16+
else
17+
# If args is empty, then an attempt to push on an empty
18+
# changeset is being made. In this case, just exit cleanly
19+
exit 0
20+
fi

0 commit comments

Comments
 (0)