1#!/bin/sh
2#
3# Set up GIT_DIR and GIT_OBJECT_DIRECTORY
4# and return true if everything looks ok
5#
6: ${GIT_DIR=.git}
7: ${GIT_OBJECT_DIRECTORY="$GIT_DIR/objects"}
89
die() {
10echo "$@" >&2
11exit 1
12}
1314
[ -h "$GIT_DIR/HEAD" ] &&
15[ -d "$GIT_DIR/refs" ] &&
16[ -d "$GIT_OBJECT_DIRECTORY/00" ]