Merge pull request #629 from thockin/silence_e2e_noise

e2e: Silence noise from git init
This commit is contained in:
Kubernetes Prow Robot 2022-09-03 03:16:27 -07:00 committed by GitHub
commit cbf034f87b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -320,7 +320,7 @@ function e2e::sync_head_once_root_exists_but_is_not_git_root() {
# Make a parent dir that is a git repo.
mkdir -p "$ROOT/subdir/root"
date > "$ROOT/subdir/root/file" # so it is not empty
git -C "$ROOT/subdir" init >/dev/null
git -C "$ROOT/subdir" init -q
GIT_SYNC \
--one-time \
@ -344,7 +344,7 @@ function e2e::sync_head_once_root_exists_but_fails_sanity() {
SHA=$(git -C "$REPO" rev-parse HEAD)
# Make an invalid git repo.
git -C "$ROOT" init >/dev/null
git -C "$ROOT" init -q
echo "ref: refs/heads/nonexist" > "$ROOT/.git/HEAD"
GIT_SYNC \