]> git.ipfire.org Git - thirdparty/git.git/blame - t/t9113-git-svn-dcommit-new-file.sh
t4039: abstract away SHA-1-specific constants
[thirdparty/git.git] / t / t9113-git-svn-dcommit-new-file.sh
CommitLineData
b3bf96d4
EW
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.
b3bf96d4 10
1364ff27 11test_description='git svn dcommit new files over svn:// test'
b3bf96d4
EW
12
13. ./lib-git-svn.sh
14
dd9da51f 15require_svnserve
b3bf96d4 16
f69e836f 17test_expect_success 'start tracking an empty repo' '
da083d68 18 svn_cmd mkdir -m "empty dir" "$svnrepo"/empty-dir &&
fba5279d 19 echo "[general]" > "$rawsvnrepo"/conf/svnserve.conf &&
f69e836f 20 echo anon-access = write >> "$rawsvnrepo"/conf/svnserve.conf &&
b3bf96d4
EW
21 start_svnserve &&
22 git svn init svn://127.0.0.1:$SVNSERVE_PORT &&
23 git svn fetch
f69e836f 24 '
b3bf96d4
EW
25
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