t / t7417-submodule-path-url.shon commit run-command: mark path lookup errors with ENOENT (321fd82)
   1#!/bin/sh
   2
   3test_description='check handling of .gitmodule path with dash'
   4. ./test-lib.sh
   5
   6test_expect_success 'create submodule with dash in path' '
   7        git init upstream &&
   8        git -C upstream commit --allow-empty -m base &&
   9        git submodule add ./upstream sub &&
  10        git mv sub ./-sub &&
  11        git commit -m submodule
  12'
  13
  14test_expect_success 'clone rejects unprotected dash' '
  15        test_when_finished "rm -rf dst" &&
  16        git clone --recurse-submodules . dst 2>err &&
  17        test_i18ngrep ignoring err
  18'
  19
  20test_done