t / t9112-git-svn-md5less-file.shon commit cvsimport: add <remote>/HEAD reference in separate remotes more (06baffd)
   1test_description='test that git handles an svn repository with missing md5sums'
   2
   3. ./lib-git-svn.sh
   4
   5# Loading a node from a svn dumpfile without a Text-Content-Length
   6# field causes svn to neglect to store or report an md5sum.  (it will
   7# calculate one if you had put Text-Content-Length: 0).  This showed
   8# up in a repository creted with cvs2svn.
   9
  10cat > dumpfile.svn <<EOF
  11SVN-fs-dump-format-version: 1
  12
  13Revision-number: 1
  14Prop-content-length: 98
  15Content-length: 98
  16
  17K 7
  18svn:log
  19V 0
  20
  21K 10
  22svn:author
  23V 4
  24test
  25K 8
  26svn:date
  27V 27
  282007-05-06T12:37:01.153339Z
  29PROPS-END
  30
  31Node-path: md5less-file
  32Node-kind: file
  33Node-action: add
  34Prop-content-length: 10
  35Content-length: 10
  36
  37PROPS-END
  38
  39EOF
  40
  41test_expect_success 'load svn dumpfile' "svnadmin load $rawsvnrepo < dumpfile.svn"
  42
  43test_expect_success 'initialize git-svn' "git-svn init $svnrepo"
  44test_expect_success 'fetch revisions from svn' 'git-svn fetch'
  45test_done