Tweak pre-commit message to make command more copy&paste-able.

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

Branch: refs/heads/master
Commit: c681026b4d85c8465f43e4fca94a73b5a2f9549f
Parents: 4d003a7
Author: Andrew Grieve <agri...@chromium.org>
Authored: Tue Oct 2 13:51:06 2012 -0400
Committer: Andrew Grieve <agri...@chromium.org>
Committed: Tue Oct 2 13:51:06 2012 -0400

----------------------------------------------------------------------
 hooks/pre-commit |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/c681026b/hooks/pre-commit
----------------------------------------------------------------------
diff --git a/hooks/pre-commit b/hooks/pre-commit
index f7395b5..0558e1e 100755
--- a/hooks/pre-commit
+++ b/hooks/pre-commit
@@ -25,7 +25,8 @@ RET=0
 files=$(bin/uncrustify.sh --filter $(git diff --cached --name-only))
 for file in $files; do
     if ! bin/uncrustify.sh --check-file $file; then
-        echo "Style fix-ups required: $file. Please run: 
$PWD/bin/uncrustify.sh $PWD/$file && git add $PWD/$file"
+        echo "Style fix-ups required: $file. Please run:"
+        echo "    bin/uncrustify.sh \"$file\" && git add \"$file\""
         RET=1
     fi
 done

Reply via email to