blob: e8479cec7abade29aec91b22bba69d4ab9804f21 [file] [log] [blame]
Eric Wongb3bf96d2007-06-13 02:37:04 -07001#!/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 Wongb3bf96d2007-06-13 02:37:04 -070010
Nanako Shiraishi1364ff22008-09-08 19:02:08 +090011test_description='git svn dcommit new files over svn:// test'
Eric Wongb3bf96d2007-06-13 02:37:04 -070012
13. ./lib-git-svn.sh
14
Alec Berrymandd9da512008-09-14 17:14:15 -040015require_svnserve
Eric Wongb3bf96d2007-06-13 02:37:04 -070016
Bryan Donlanf69e8362008-05-04 01:37:59 -040017test_expect_success 'start tracking an empty repo' '
Eygene Ryabinkinda083d62009-05-08 12:06:16 +040018 svn_cmd mkdir -m "empty dir" "$svnrepo"/empty-dir &&
Dmitry Potapovfba52792008-08-04 19:30:24 +040019 echo "[general]" > "$rawsvnrepo"/conf/svnserve.conf &&
Bryan Donlanf69e8362008-05-04 01:37:59 -040020 echo anon-access = write >> "$rawsvnrepo"/conf/svnserve.conf &&
Eric Wongb3bf96d2007-06-13 02:37:04 -070021 start_svnserve &&
22 git svn init svn://127.0.0.1:$SVNSERVE_PORT &&
23 git svn fetch
Bryan Donlanf69e8362008-05-04 01:37:59 -040024 '
Eric Wongb3bf96d2007-06-13 02:37:04 -070025
26test_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
35test_done