]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t6000-rev-list-misc.sh
revision: do not peel tags used in range notation
[thirdparty/git.git] / t / t6000-rev-list-misc.sh
index b10685af4e3e19c79e1e656aadc9aae3430777f0..15e3d6476c78ba3447504aa133e9e1d7ffbfd87d 100755 (executable)
@@ -48,4 +48,12 @@ test_expect_success 'rev-list --objects with pathspecs and copied files' '
        ! grep one output
 '
 
+test_expect_success 'rev-list A..B and rev-list ^A B are the same' '
+       git commit --allow-empty -m another &&
+       git tag -a -m "annotated" v1.0 &&
+       git rev-list --objects ^v1.0^ v1.0 >expect &&
+       git rev-list --objects v1.0^..v1.0 >actual &&
+       test_cmp expect actual
+'
+
 test_done