Skip to content

Commit e9b4c48

Browse files
committed
Merge branch 'ew/rev-parse-since-test'
Test to make sure "git rev-parse one-thing one-thing" gives the same thing twice (when one-thing is --since=X). * ew/rev-parse-since-test: t1500: ensure current --since= behavior remains
2 parents d494433 + a5cdca4 commit e9b4c48

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

t/t1500-rev-parse.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,4 +243,19 @@ test_expect_success 'showing the superproject correctly' '
243243
test_cmp expect out
244244
'
245245

246+
# at least one external project depends on this behavior:
247+
test_expect_success 'rev-parse --since= unsqueezed ordering' '
248+
x1=--since=1970-01-01T00:00:01Z &&
249+
x2=--since=1970-01-01T00:00:02Z &&
250+
x3=--since=1970-01-01T00:00:03Z &&
251+
git rev-parse $x1 $x1 $x3 $x2 >actual &&
252+
cat >expect <<-EOF &&
253+
--max-age=1
254+
--max-age=1
255+
--max-age=3
256+
--max-age=2
257+
EOF
258+
test_cmp expect actual
259+
'
260+
246261
test_done

0 commit comments

Comments
 (0)