blob: 372ef156850098928ac1ed402ab2228460af3c00 [file] [log] [blame]
Jay Soffian3e18ce12010-01-23 03:30:00 -05001#!/bin/sh
2#
3# Copyright (c) 2010 Jay Soffian
4#
5
6test_description='git svn --rewrite-uuid test'
7
8. ./lib-git-svn.sh
9
10uuid=6cc8ada4-5932-4b4a-8242-3534ed8a3232
11
12test_expect_success 'load svn repo' "
13 svnadmin load -q '$rawsvnrepo' < '$TEST_DIRECTORY/t9153/svn.dump' &&
14 git svn init --minimize-url --rewrite-uuid='$uuid' '$svnrepo' &&
15 git svn fetch
16 "
17
18test_expect_success 'verify uuid' "
19 git cat-file commit refs/remotes/git-svn~0 | \
Jeff Kinge1c0c152016-05-13 16:47:14 -040020 grep '^git-svn-id: .*@2 $uuid$' &&
Jay Soffian3e18ce12010-01-23 03:30:00 -050021 git cat-file commit refs/remotes/git-svn~1 | \
Jeff Kinge1c0c152016-05-13 16:47:14 -040022 grep '^git-svn-id: .*@1 $uuid$'
Jay Soffian3e18ce12010-01-23 03:30:00 -050023 "
24
25test_done