Windows: set gitexecdir = $(bindir)
[git/mingw/4msysgit/wingit-dll.git] / t / t9113-git-svn-dcommit-new-file.sh
blob8da8ce58eb1b29210a6ac95fdd3a3fcb547ca36f
1 #!/bin/sh
3 # Copyright (c) 2007 Eric Wong
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.
11 test_description='git-svn dcommit new files over svn:// test'
13 . ./lib-git-svn.sh
15 if test -z "$SVNSERVE_PORT"
16 then
17 say 'skipping svnserve test. (set $SVNSERVE_PORT to enable)'
18 test_done
19 exit
22 start_svnserve () {
23 svnserve --listen-port $SVNSERVE_PORT \
24 --root "$rawsvnrepo" \
25 --listen-once \
26 --listen-host 127.0.0.1 &
29 test_expect_success 'start tracking an empty repo' '
30 svn mkdir -m "empty dir" "$svnrepo"/empty-dir &&
31 echo anon-access = write >> "$rawsvnrepo"/conf/svnserve.conf &&
32 start_svnserve &&
33 git svn init svn://127.0.0.1:$SVNSERVE_PORT &&
34 git svn fetch
37 test_expect_success 'create files in new directory with dcommit' "
38 mkdir git-new-dir &&
39 echo hello > git-new-dir/world &&
40 git update-index --add git-new-dir/world &&
41 git commit -m hello &&
42 start_svnserve &&
43 git svn dcommit
46 test_done