Jhernandez has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/169304

Change subject: Disable beautify on pre-commit hook for now.
......................................................................

Disable beautify on pre-commit hook for now.

Don't mess up with code for now. Also that `git add` has problems if you just
add --patch and try to commit.

Change-Id: Ic67ffe98f658b3743d0e29f78ff9f16b7e663d4c
---
M dev-scripts/pre-commit
1 file changed, 8 insertions(+), 8 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend 
refs/changes/04/169304/1

diff --git a/dev-scripts/pre-commit b/dev-scripts/pre-commit
index 9ee1572..ba3a91b 100755
--- a/dev-scripts/pre-commit
+++ b/dev-scripts/pre-commit
@@ -7,14 +7,14 @@
        exit 1
 fi
 
-for file in `git diff --cached --name-only | grep -i ".js\$"`
-do
-       echo "Beautifying $file"
-       if [ -f $file ]; then
-               node_modules/.bin/js-beautify -r "$file"
-               git add "$file"
-       fi
-done
+# for file in `git diff --cached --name-only | grep -i ".js\$"`
+# do
+#      echo "Beautifying $file"
+#      if [ -f $file ]; then
+#              node_modules/.bin/js-beautify -r "$file"
+#              git add "$file"
+#      fi
+# done
 
 make jshint || exit 1
 make jscs || exit 1

-- 
To view, visit https://gerrit.wikimedia.org/r/169304
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic67ffe98f658b3743d0e29f78ff9f16b7e663d4c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Jhernandez <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to