2005-07-08 19:57:21 +02:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Set up GIT_DIR and GIT_OBJECT_DIRECTORY
|
|
|
|
# and return true if everything looks ok
|
|
|
|
#
|
|
|
|
: ${GIT_DIR=.git}
|
|
|
|
: ${GIT_OBJECT_DIRECTORY="$GIT_DIR/objects"}
|
|
|
|
|
|
|
|
die() {
|
|
|
|
echo "$@" >&2
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
|
|
|
[ -d "$GIT_DIR" ] &&
|
2005-08-06 19:04:50 +02:00
|
|
|
[ -d "$GIT_DIR/refs" ] &&
|
2005-07-08 19:57:21 +02:00
|
|
|
[ -d "$GIT_OBJECT_DIRECTORY" ] &&
|
|
|
|
[ -d "$GIT_OBJECT_DIRECTORY/00" ]
|