19 lines
364 B
Bash
Executable file
19 lines
364 B
Bash
Executable file
set -e
|
|
|
|
. helper.sh
|
|
TEST_NAME=test-0001-init
|
|
|
|
function check_initial_layout {
|
|
# does it actually create the required directories?
|
|
file_exists "$1/HEAD"
|
|
dir_exists "$1/refs"
|
|
}
|
|
|
|
# does git init work without failing?
|
|
get_temp_name $TEST_NAME
|
|
$GIT_PATH init $temp_dir
|
|
if [ ! $? ]; then
|
|
error "git init failed"
|
|
fi
|
|
|
|
check_initial_layout "$temp_dir/.git"
|