ソースを参照

Update pre-commit

Use git update-index when updating files
Nicolas R 2 年 前
親
コミット
fa981f67ac
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