t / t3906-stash-submodule.shon commit Merge branch 'sk/mingw-tests-workaround' (c372e7b)
   1#!/bin/sh
   2
   3test_description='stash apply can handle submodules'
   4
   5. ./test-lib.sh
   6. "$TEST_DIRECTORY"/lib-submodule-update.sh
   7
   8git_stash () {
   9        git status -su >expect &&
  10        ls -1pR * >>expect &&
  11        git read-tree -u -m "$1" &&
  12        git stash &&
  13        git status -su >actual &&
  14        ls -1pR * >>actual &&
  15        test_cmp expect actual &&
  16        git stash apply
  17}
  18
  19KNOWN_FAILURE_STASH_DOES_IGNORE_SUBMODULE_CHANGES=1
  20KNOWN_FAILURE_CHERRY_PICK_SEES_EMPTY_COMMIT=1
  21KNOWN_FAILURE_NOFF_MERGE_DOESNT_CREATE_EMPTY_SUBMODULE_DIR=1
  22test_submodule_switch "git_stash"
  23
  24test_done