Eric Wong | b3bf96d | 2007-06-13 02:37:04 -0700 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | # |
| 3 | # Copyright (c) 2007 Eric Wong |
| 4 | # |
| 5 | |
| 6 | # Don't run this test by default unless the user really wants it |
| 7 | # I don't like the idea of taking a port and possibly leaving a |
| 8 | # daemon running on a users system if the test fails. |
| 9 | # Not all git users will need to interact with SVN. |
Eric Wong | b3bf96d | 2007-06-13 02:37:04 -0700 | [diff] [blame] | 10 | |
Nanako Shiraishi | 1364ff2 | 2008-09-08 19:02:08 +0900 | [diff] [blame] | 11 | test_description='git svn dcommit new files over svn:// test' |
Eric Wong | b3bf96d | 2007-06-13 02:37:04 -0700 | [diff] [blame] | 12 | |
| 13 | . ./lib-git-svn.sh |
| 14 | |
Alec Berryman | dd9da51 | 2008-09-14 17:14:15 -0400 | [diff] [blame] | 15 | require_svnserve |
Eric Wong | b3bf96d | 2007-06-13 02:37:04 -0700 | [diff] [blame] | 16 | |
Bryan Donlan | f69e836 | 2008-05-04 01:37:59 -0400 | [diff] [blame] | 17 | test_expect_success 'start tracking an empty repo' ' |
Eygene Ryabinkin | da083d6 | 2009-05-08 12:06:16 +0400 | [diff] [blame] | 18 | svn_cmd mkdir -m "empty dir" "$svnrepo"/empty-dir && |
Dmitry Potapov | fba5279 | 2008-08-04 19:30:24 +0400 | [diff] [blame] | 19 | echo "[general]" > "$rawsvnrepo"/conf/svnserve.conf && |
Bryan Donlan | f69e836 | 2008-05-04 01:37:59 -0400 | [diff] [blame] | 20 | echo anon-access = write >> "$rawsvnrepo"/conf/svnserve.conf && |
Eric Wong | b3bf96d | 2007-06-13 02:37:04 -0700 | [diff] [blame] | 21 | start_svnserve && |
| 22 | git svn init svn://127.0.0.1:$SVNSERVE_PORT && |
| 23 | git svn fetch |
Bryan Donlan | f69e836 | 2008-05-04 01:37:59 -0400 | [diff] [blame] | 24 | ' |
Eric Wong | b3bf96d | 2007-06-13 02:37:04 -0700 | [diff] [blame] | 25 | |
| 26 | test_expect_success 'create files in new directory with dcommit' " |
| 27 | mkdir git-new-dir && |
| 28 | echo hello > git-new-dir/world && |
| 29 | git update-index --add git-new-dir/world && |
| 30 | git commit -m hello && |
| 31 | start_svnserve && |
| 32 | git svn dcommit |
| 33 | " |
| 34 | |
| 35 | test_done |