浏览代码

Merge pull request #327 from atoomic/patch-1

Update pre-commit
George S. Baugh 2 年之前
父节点
当前提交
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