#!/usr/bin/env bats load ../helper @test 'clone with github shorthand, while matching path exists' { $EXPECT_INSTALLED || skip 'expect not installed' ping -c 1 -w 3 github.com || ping -c 1 -t 3 github.com || skip 'github not reachable' (cd "$HOME" && git init andsens/rc-files) open_bracket="\\u005b" close_bracket="\\u005d" esc="\\u001b$open_bracket" (cd "$HOME" && cat <= 1.6.5' { fixture 'nested-submodules' GIT_VERSION=$(get_git_version) run version_compare "$GIT_VERSION" 1.6.5 [[ $status == 2 ]] && skip 'git version too low' $HOMESHICK_FN --batch clone "$REPO_FIXTURES/nested-submodules" [ -e "$HOMESICK/repos/nested-submodules/level1/level2" ] } @test 'recursive clone with git version < 1.6.5' { fixture 'nested-submodules' GIT_VERSION=1.6.4 $HOMESHICK_FN --batch clone "$REPO_FIXTURES/nested-submodules" [ -e "$HOMESICK/repos/nested-submodules/level1" ] [ ! -e "$HOMESICK/repos/nested-submodules/level1/level2/info" ] }