blob: 9861c719f8c5e3fbe5b626e5fdf1ebf83156086c [file] [log] [blame]
Jeff King32aedd52008-03-12 17:42:15 -04001#!/bin/sh
2
James Y Knight20b3d202007-05-24 00:37:06 -04003test_description='test that git handles an svn repository with missing md5sums'
4
5. ./lib-git-svn.sh
6
7# Loading a node from a svn dumpfile without a Text-Content-Length
8# field causes svn to neglect to store or report an md5sum. (it will
9# calculate one if you had put Text-Content-Length: 0). This showed
Ondřej Bílka98e023d2013-07-29 10:18:21 +020010# up in a repository created with cvs2svn.
James Y Knight20b3d202007-05-24 00:37:06 -040011
12cat > dumpfile.svn <<EOF
13SVN-fs-dump-format-version: 1
14
15Revision-number: 1
16Prop-content-length: 98
17Content-length: 98
18
19K 7
20svn:log
21V 0
22
23K 10
24svn:author
25V 4
26test
27K 8
28svn:date
29V 27
302007-05-06T12:37:01.153339Z
31PROPS-END
32
33Node-path: md5less-file
34Node-kind: file
35Node-action: add
36Prop-content-length: 10
37Content-length: 10
38
39PROPS-END
40
41EOF
42
Bryan Donlanf69e8362008-05-04 01:37:59 -040043test_expect_success 'load svn dumpfile' 'svnadmin load "$rawsvnrepo" < dumpfile.svn'
James Y Knight20b3d202007-05-24 00:37:06 -040044
Nanako Shiraishif9647322008-09-10 06:25:27 +090045test_expect_success 'initialize git svn' 'git svn init "$svnrepo"'
Nanako Shiraishi1364ff22008-09-08 19:02:08 +090046test_expect_success 'fetch revisions from svn' 'git svn fetch'
James Y Knight20b3d202007-05-24 00:37:06 -040047test_done