zsh-workers
 help / color / mirror / code / Atom feed
a15d1d92743f41ebb2e09ce523f67dc779db2e96 blob 425 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
 
#!/bin/bash
#
# Hook script to restore metadata information using metastore
# following each checkout.

# Do not restore metadata on a checkout from index
if [ "$3" -eq 0 ]
then
	exit 0
fi

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

if [ ! -e "$STOREFILE" ]; then
	echo "No .metadata yet" >&2
	exit 0
fi

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

exit 0
debug log:

solving a15d1d9 ...
found a15d1d9 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-post-checkout b/Util/git-post-checkout
new file mode 100755
index 0000000..a15d1d9

Checking patch Util/git-post-checkout...
Applied patch Util/git-post-checkout cleanly.

index at:
100755 a15d1d92743f41ebb2e09ce523f67dc779db2e96	Util/git-post-checkout

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).