Signed-off-by: Stefan Beller <sbeller@xxxxxxxxxx> --- t/t5544-fetch-2.sh | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100755 t/t5544-fetch-2.sh diff --git a/t/t5544-fetch-2.sh b/t/t5544-fetch-2.sh new file mode 100755 index 0000000..beee46c --- /dev/null +++ b/t/t5544-fetch-2.sh @@ -0,0 +1,40 @@ +#!/bin/sh +# +# Copyright (c) 2015 Stefan Beller +# + +test_description='Testing version 2 of the fetch protocol' + +. ./test-lib.sh + +mk_repo_pair () { + rm -rf client server && + test_create_repo client && + test_create_repo server && + ( + cd server && + git config receive.denyCurrentBranch warn + ) && + ( + cd client && + git remote add origin ../server + git config remote.origin.transportversion 2 + ) +} + +test_expect_success 'setup' ' + mk_repo_pair && + ( + cd server && + test_commit one + ) && + ( + cd client && + git fetch origin master + ) +' + +# More to come here, similar to t5515 having a sub directory full of expected +# data going over the wire. + +test_done -- 2.4.1.345.gab207b6.dirty -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html