summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-11-19 05:39:17 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-11-20 02:44:23 (GMT)
commit6c96c0f1940b0247530d21b10042d16bf1e7b769 (patch)
tree55d7edd39adc5b480cc1ccfad7f6fc60769a05d1 /t
parent198a4f4ff0694cb5b906278fc1c2b6e7db4d2737 (diff)
downloadgit-6c96c0f1940b0247530d21b10042d16bf1e7b769.zip
git-6c96c0f1940b0247530d21b10042d16bf1e7b769.tar.gz
git-6c96c0f1940b0247530d21b10042d16bf1e7b769.tar.bz2
git-fetch: follow lightweit tags as well.
This side-ports commit fd19f620 from Cogito, in which I fixed exactly the same bug. Somehow nobody noticed this for a long time in git. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 't')
-rwxr-xr-xt/t5510-fetch.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/t/t5510-fetch.sh b/t/t5510-fetch.sh
index df0ae48..a11ab0a 100755
--- a/t/t5510-fetch.sh
+++ b/t/t5510-fetch.sh
@@ -66,4 +66,20 @@ test_expect_success "fetch test for-merge" '
cut -f -2 .git/FETCH_HEAD >actual &&
diff expected actual'
+test_expect_success 'fetch following tags' '
+
+ cd "$D" &&
+ git tag -a -m 'annotated' anno HEAD &&
+ git tag light HEAD &&
+
+ mkdir four &&
+ cd four &&
+ git init-db &&
+
+ git fetch .. :track &&
+ git show-ref --verify refs/tags/anno &&
+ git show-ref --verify refs/tags/light
+
+'
+
test_done