Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51ac0e8 commit 1bfd108Copy full SHA for 1bfd108
1 file changed
pre_commit/resources/pre-push-tmpl
@@ -8,7 +8,8 @@ do
8
if [ -n "$first_ancestor" ]; then
9
# Check that the ancestor has at least one parent
10
git rev-list --max-parents=0 "$local_sha" | grep "$first_ancestor" > /dev/null
11
- if [ $? -ne 0 ]; then
+ if [ $? -eq 0 ]; then
12
+ # Pushing the whole tree, including the root commit, so run on all files
13
args="--all-files"
14
else
15
source=$(git rev-parse "$first_ancestor"^)
0 commit comments