You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2013/03/21 03:30:37 UTC

ios commit: Make sure version of uncrustify is correct in the pre-commit hook

Updated Branches:
  refs/heads/master e8751921b -> 411440d32


Make sure version of uncrustify is correct in the pre-commit hook


Project: http://git-wip-us.apache.org/repos/asf/cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/411440d3
Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/411440d3
Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/411440d3

Branch: refs/heads/master
Commit: 411440d326e7ddab85b694baf13adfbc1e117f75
Parents: e875192
Author: Andrew Grieve <ag...@chromium.org>
Authored: Wed Mar 20 22:29:46 2013 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Wed Mar 20 22:29:46 2013 -0400

----------------------------------------------------------------------
 hooks/pre-commit |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/411440d3/hooks/pre-commit
----------------------------------------------------------------------
diff --git a/hooks/pre-commit b/hooks/pre-commit
index 03ff08c..80550f1 100755
--- a/hooks/pre-commit
+++ b/hooks/pre-commit
@@ -22,6 +22,11 @@
 exec 1>&2
 test $SKIP_UNCRUSTIFY && exit 0
 
+if [[ "$(uncrustify --version | cut -d' ' -f2)" != 0.60 ]]; then
+  echo "Please install version 0.60 of uncrustify."
+  exit 1
+fi
+
 RET=0
 files=$(bin/uncrustify.sh --filter $(git diff --cached --name-only))
 MSGS=