summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2018-05-08 15:59:35 +0900
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-05-08 15:59:35 +0900
commit96f29521a3908eb80b9552f11f2b75ca34475686 (patch)
tree191eb44839fcb0f417d87da2cb7ca92ce63c936d /t
parentMerge branch 'js/runtime-prefix' (diff)
parentwalker: drop fields of `struct walker` which are always 1 (diff)
downloadtgif-96f29521a3908eb80b9552f11f2b75ca34475686.tar.xz
Merge branch 'ma/http-walker-no-partial'
"git http-fetch" (deprecated) had an optional and experimental "feature" to fetch only commits and/or trees, which nobody used. This has been removed. * ma/http-walker-no-partial: walker: drop fields of `struct walker` which are always 1 http-fetch: make `-a` standard behaviour
Diffstat (limited to 't')
-rwxr-xr-xt/t5550-http-fetch-dumb.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/t/t5550-http-fetch-dumb.sh b/t/t5550-http-fetch-dumb.sh
index 8552184e74..6d7d88ccc9 100755
--- a/t/t5550-http-fetch-dumb.sh
+++ b/t/t5550-http-fetch-dumb.sh
@@ -169,6 +169,17 @@ test_expect_success 'fetch changes via manual http-fetch' '
test_cmp file clone2/file
'
+test_expect_success 'manual http-fetch without -a works just as well' '
+ cp -R clone-tmpl clone3 &&
+
+ HEAD=$(git rev-parse --verify HEAD) &&
+ (cd clone3 &&
+ git http-fetch -w heads/master-new $HEAD $(git config remote.origin.url) &&
+ git checkout master-new &&
+ test $HEAD = $(git rev-parse --verify HEAD)) &&
+ test_cmp file clone3/file
+'
+
test_expect_success 'http remote detects correct HEAD' '
git push public master:other &&
(cd clone &&