mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-15 18:11:48 +04:00
Merge 07fa5378b6 into 50564480fb
This commit is contained in:
commit
b2e443f66d
1 changed files with 1 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ do
|
|||
if [ -n "$first_ancestor" ]; then
|
||||
# Check that the ancestor has at least one parent
|
||||
git rev-list --max-parents=0 "$local_sha" | grep "$first_ancestor" > /dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
if [ $? -eq 0 ]; then
|
||||
args="run --all-files"
|
||||
else
|
||||
source=$(git rev-parse "$first_ancestor"^)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue