[PATCH 3/7] test-bzr.sh, test-hg.sh: prepare for change to push.default=simple
- From
- Richard Hansen <rhansen@bbn.com>
- Date
- Nov 11, 2013, 04:05 UTC
- Message-ID
- <1384142712-2936-4-git-send-email-rhansen@bbn.com>
- In-Reply-To
- <1384142712-2936-1-git-send-email-rhansen@bbn.com>
Change 'git push' to 'git push -u <remote> <branch>' in one of the test-bzr.sh tests to ensure that the test continues to pass when the default value of push.default changes to simple.
Also, explicitly set push.default to simple to silence warnings when using --verbose.
Signed-off-by: Richard Hansen <rhansen@bbn.com> --- contrib/remote-helpers/test-bzr.sh | 5 ++++- contrib/remote-helpers/test-hg.sh | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/contrib/remote-helpers/test-bzr.sh b/contrib/remote-helpers/test-bzr.sh index 094062c..ea597b0 100755 --- a/contrib/remote-helpers/test-bzr.sh +++ b/contrib/remote-helpers/test-bzr.sh @@ -28,6 +28,9 @@ check () { bzr whoami "A U Thor <author@example.com>" +# silence warnings +git config --global push.default simple + test_expect_success 'cloning' ' ( bzr init bzrrepo && @@ -379,7 +382,7 @@ test_expect_success 'export utf-8 authors' ' git add content && git commit -m one && git remote add bzr "bzr::../bzrrepo" && - git push bzr + git push -u bzr master ) && ( diff --git a/contrib/remote-helpers/test-hg.sh b/contrib/remote-helpers/test-hg.sh index dbe0eec..53f2bba 100755 --- a/contrib/remote-helpers/test-hg.sh +++ b/contrib/remote-helpers/test-hg.sh @@ -102,6 +102,9 @@ setup () { GIT_AUTHOR_DATE="2007-01-01 00:00:00 +0230" && GIT_COMMITTER_DATE="$GIT_AUTHOR_DATE" && export GIT_COMMITTER_DATE GIT_AUTHOR_DATE + + # silence warnings + git config --global push.default simple } setup
-- 1.8.5.rc1.207.gc17dd22