zsh-workers
 help / color / mirror / code / Atom feed
6030d12c090f3e9cc235a87295688a95457e7af1 blob 531 bytes (raw)

 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
 
#!/bin/bash
#
# Hook script to store metadata information using metastore
# before each commit.

STOREPATH=".metadata/$(git symbolic-ref HEAD)"
STOREFILE="$STOREPATH/.metadata"

if [ ! -d "$STOREPATH" ] && ! mkdir -p "$STOREPATH"
then
	echo "Cannot create $STOREPATH, committing anyway" >&2
	exit 0
fi

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

if [ ! -e "$STOREFILE" ]; then
	echo ".metadata missing after metastore -s" >&2
	exec test \! -x .git/hooks/post-checkout
fi

exit 0
debug log:

solving 6030d12 ...
found 6030d12 in https://inbox.vuxu.org/zsh-workers/130615124610.ZM12323@torch.brasslantern.com/

applying [1/1] https://inbox.vuxu.org/zsh-workers/130615124610.ZM12323@torch.brasslantern.com/
diff --git a/Util/git-pre-commit b/Util/git-pre-commit
new file mode 100755
index 0000000..6030d12

Checking patch Util/git-pre-commit...
Applied patch Util/git-pre-commit cleanly.

index at:
100755 6030d12c090f3e9cc235a87295688a95457e7af1	Util/git-pre-commit

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).