3 # Set up GIT_DIR and GIT_OBJECT_DIRECTORY
4 # and return true if everything looks ok
7 : ${GIT_OBJECT_DIRECTORY="$GIT_DIR/objects"}
9 # Having this variable in your environment would break scripts because
10 # you would cause "cd" to be be taken to unexpected places. If you
11 # like CDPATH, define it for your interactive shell sessions without
20 [ -h "$GIT_DIR/HEAD" ] &&
21 [ -d "$GIT_DIR/refs" ] &&
22 [ -d "$GIT_OBJECT_DIRECTORY/00" ]