File: pre-commit

package info (click to toggle)
metastore 1+20080623+debian-5
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 216 kB
  • ctags: 156
  • sloc: ansic: 1,175; sh: 46; makefile: 33
file content (21 lines) | stat: -rw-r--r-- 351 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
#
# An example hook script to store metadata information using
# metastore on each commit.

if ! metastore -s; then
	echo "Failed to execute metastore -s" >&2
	exit 1
fi

if [ ! -e ".metadata" ]; then
	echo ".metadata missing" >&2
	exit 1
fi

if ! git-add .metadata; then
	echo "Failed to execute git-add .metadata" >&2
	exit 1
fi

exit 0