Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericsciple committed Feb 27, 2020
1 parent a5219d9 commit d0b21e9
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
12 changes: 11 additions & 1 deletion __test__/verify-submodules-recursive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,14 @@ fi
if [ ! -f "./submodules-recursive/submodule-level-1/submodule-level-2/nested-submodule-file.txt" ]; then
echo "Expected nested submodule file does not exists"
exit 1
fi
fi

echo "Testing persisted credential"
pushd ./submodules-recursive/submodule-level-1/submodule-level-2
git config --local --name-only --get-regexp http.+extraheader && git fetch
if [ "$?" == "0" ]; then
echo "Failed to validate persisted credential"
popd
exit 1
fi
popd
12 changes: 11 additions & 1 deletion __test__/verify-submodules-true.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,14 @@ fi
if [ -f "./submodules-true/submodule-level-1/submodule-level-2/nested-submodule-file.txt" ]; then
echo "Unexpected nested submodule file exists"
exit 1
fi
fi

echo "Testing persisted credential"
pushd ./submodules-true/submodule-level-1
git config --local --name-only --get-regexp http.+extraheader && git fetch
if [ "$?" == "0" ]; then
echo "Failed to validate persisted credential"
popd
exit 1
fi
popd

0 comments on commit d0b21e9

Please sign in to comment.