This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, hooks has been updated
       via  5d4166083669297e2930ad6d23150e17edcb4eac (commit)
       via  b22ff892df4bbb55d9ef23f99d2e4b144d0ba607 (commit)
      from  6d1fe685cb08cba7f1b32e721cb474025bad2e03 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=5d4166083669297e2930ad6d23150e17edcb4eac
commit 5d4166083669297e2930ad6d23150e17edcb4eac
Author:     Brad King <brad.k...@kitware.com>
AuthorDate: Thu Jan 13 15:33:33 2011 -0500
Commit:     Brad King <brad.k...@kitware.com>
CommitDate: Thu Jan 13 15:33:33 2011 -0500

    Update copyright notices for year 2011

diff --git a/NOTICE b/NOTICE
index cd8dcca..1b9d3a5 100644
--- a/NOTICE
+++ b/NOTICE
@@ -1,5 +1,5 @@
 Kitware Local Git Hooks
-Copyright 2010 Kitware, Inc.
+Copyright 2010-2011 Kitware, Inc.
 
 This product includes software developed at Kitware, Inc.
 (http://www.kitware.com/).
diff --git a/commit-msg b/commit-msg
index b9c528b..414285f 100755
--- a/commit-msg
+++ b/commit-msg
@@ -1,6 +1,6 @@
 #!/usr/bin/env bash
 #=============================================================================
-# Copyright 2010 Kitware, Inc.
+# Copyright 2010-2011 Kitware, Inc.
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
diff --git a/hooks-chain.bash b/hooks-chain.bash
index 63c1f40..a4c7544 100644
--- a/hooks-chain.bash
+++ b/hooks-chain.bash
@@ -1,5 +1,5 @@
 #=============================================================================
-# Copyright 2010 Kitware, Inc.
+# Copyright 2010-2011 Kitware, Inc.
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
diff --git a/pre-commit b/pre-commit
index 2493772..d6aedb2 100755
--- a/pre-commit
+++ b/pre-commit
@@ -1,6 +1,6 @@
 #!/usr/bin/env bash
 #=============================================================================
-# Copyright 2010 Kitware, Inc.
+# Copyright 2010-2011 Kitware, Inc.
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
diff --git a/pre-commit-style b/pre-commit-style
index 7fc51c8..74d2caa 100644
--- a/pre-commit-style
+++ b/pre-commit-style
@@ -1,5 +1,5 @@
 #=============================================================================
-# Copyright 2010 Kitware, Inc.
+# Copyright 2010-2011 Kitware, Inc.
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
diff --git a/prepare-commit-msg b/prepare-commit-msg
index 505b522..b791fbf 100755
--- a/prepare-commit-msg
+++ b/prepare-commit-msg
@@ -1,6 +1,6 @@
 #!/usr/bin/env bash
 #=============================================================================
-# Copyright 2010 Kitware, Inc.
+# Copyright 2010-2011 Kitware, Inc.
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=b22ff892df4bbb55d9ef23f99d2e4b144d0ba607
commit b22ff892df4bbb55d9ef23f99d2e4b144d0ba607
Author:     Brad King <brad.k...@kitware.com>
AuthorDate: Tue Jan 11 18:01:50 2011 -0500
Commit:     Brad King <brad.k...@kitware.com>
CommitDate: Tue Jan 11 18:01:50 2011 -0500

    commit-msg: Do not advise use of COMMIT_MSG after removal
    
    Once our temporary COMMIT_MSG file has been removed do not advise the
    author to use the file to continue editing the message.

diff --git a/commit-msg b/commit-msg
index c4d8f06..b9c528b 100755
--- a/commit-msg
+++ b/commit-msg
@@ -21,15 +21,17 @@
 commit_msg="$GIT_DIR/COMMIT_MSG"
 sed -n -e '/^#/d' -e '/^diff --git/q' -e 'p;d' "$1" > "$commit_msg"
 
+die_advice='
+To continue editing, run the command
+  git commit -e -F '"$commit_msg"'
+(assuming your working directory is at the top).'
+
 die() {
        echo 'commit-msg hook failure' 1>&2
        echo '-----------------------' 1>&2
        echo '' 1>&2
        echo "$@" 1>&2
-       echo '
-To continue editing, run the command
-  git commit -e -F '"$commit_msg"'
-(assuming your working directory is at the top).' 1>&2
+       test -n "$die_advice" && echo "$die_advice" 1>&2
        exit 1
 }
 
@@ -97,6 +99,7 @@ while IFS='' read line; do
        msg_$state || break
 done &&
 rm -f "$commit_msg" || exit 1
+die_advice='' # No more temporary message file.
 
 #-----------------------------------------------------------------------------
 # Optionally run Gerrit's commit-msg hook to add a Change-Id line.

-----------------------------------------------------------------------

Summary of changes:
 NOTICE             |    2 +-
 commit-msg         |   13 ++++++++-----
 hooks-chain.bash   |    2 +-
 pre-commit         |    2 +-
 pre-commit-style   |    2 +-
 prepare-commit-msg |    2 +-
 6 files changed, 13 insertions(+), 10 deletions(-)


hooks/post-receive
-- 
CMake
_______________________________________________
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-commits

Reply via email to