3 # An example hook script to store metadata information using
4 # metastore on each commit. A verification message with a list
5 # of changes will first be shown and only if it is accepted will
8 echo "Going to commit the following metadata changes" >&2
10 echo -n "Ok to commit? (y/n): " >&2
14 if [ "$REPLY" != "y" ]; then
19 if ! metastore
-s; then
20 echo "Failed to execute metastore -s" >&2
24 if [ ! -e ".metadata" ]; then
25 echo ".metadata missing" >&2
29 if ! git-add .metadata
; then
30 echo "Failed to execute git-add .metadata" >&2