This file is indexed.

/usr/share/gitpkg/hooks/pristine-tar-pre-export-hook is in gitpkg 0.23.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
# gitpkg hook script to extract an .orig.tar.gz using pristine-tar.
# Originally from David Bremner.
#
# To enable this hook, use:
# git config gitpkg.pre-export-hook /usr/share/gitpkg/hooks/pristine-tar-pre-export-hook

if [ -n "$DEB_ORIG" ]; then
    if git show-ref pristine-tar 1>/dev/null; then
	echo "pristine-tar checkout $DEB_DIR/$DEB_SOURCE/$DEB_ORIG"
	mkdir -p "$DEB_DIR/$DEB_SOURCE"
	pristine-tar checkout "$DEB_DIR/$DEB_SOURCE/$DEB_ORIG"
    else
	cat 1>&2 <<-EOF
	pristine-tar-pre-export-hook:
	 No pristine-tar branch found in this repo.
	 Use: git config gitpkg.pre-export-hook ''
	 to disable this hook for this repo, else fix the real problem and try again.

	EOF
	exit 1
    fi
fi