Package: metastore / 1+20080623+debian-5

02-git-pre-commit.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Do not prompt in example git pre-commit hook

Hooks now run with stdin closed (since Git version 1.5.4, commit
f5bbc322) and prompting will not work when using a high-level interface
such as git-gui or Emacs anyway.
---
 examples/pre-commit |   15 +--------------
 1 file changed, 1 insertion(+), 14 deletions(-)

--- a/examples/pre-commit
+++ b/examples/pre-commit
@@ -1,20 +1,7 @@
 #!/bin/bash
 #
 # An example hook script to store metadata information using
-# metastore on each commit. A verification message with a list
-# of changes will first be shown and only if it is accepted will
-# the commit proceed.
-
-echo "Going to commit the following metadata changes" >&2
-metastore -c -m >&2
-echo -n "Ok to commit? (y/n): " >&2
-read -n1 REPLY
-echo ""
-
-if [ "$REPLY" != "y" ]; then
-	echo "Aborted" >&2
-	exit 1
-fi
+# metastore on each commit.
 
 if ! metastore -s; then
 	echo "Failed to execute metastore -s" >&2