Просмотр исходного кода

Merge pull request #327 from atoomic/patch-1

Update pre-commit
George S. Baugh 2 лет назад
Родитель
Сommit
89ee646bea
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      git-hooks/pre-commit

+ 1 - 1
git-hooks/pre-commit

@@ -9,6 +9,6 @@ if [ $to_tidy  ]
 then
     echo "Auto-tidying perl changes..."
     perltidy -b $to_tidy
-    git add $to_tidy
+    git update-index --add $to_tidy
     echo "Done."
 fi