Kaynağa Gözat

Update pre-commit

Use git update-index when updating files
Nicolas R 2 yıl önce
ebeveyn
işleme
fa981f67ac
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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