summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorBenoit Sigoure <tsuna@lrde.epita.fr>2007-11-11 18:41:41 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-11-12 07:40:32 (GMT)
commitc8cfa3e4a5b1d1d4c870c82d2dbf162f570f0561 (patch)
tree0239d707b3f72e3eacfffadf91e5df289d47aa03 /t
parenta91ef6e75b897a255cc17b70014a39e68dd54c7a (diff)
downloadgit-c8cfa3e4a5b1d1d4c870c82d2dbf162f570f0561.zip
git-c8cfa3e4a5b1d1d4c870c82d2dbf162f570f0561.tar.gz
git-c8cfa3e4a5b1d1d4c870c82d2dbf162f570f0561.tar.bz2
git-svn: prevent dcommitting if the index is dirty.
dcommit uses rebase to sync the history with what has just been pushed to SVN. Trying to dcommit with a dirty index is troublesome for rebase, so now the user will get an error message if he attempts to dcommit with a dirty index. Signed-off-by: Benoit Sigoure <tsuna@lrde.epita.fr> Acked-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-xt/t9106-git-svn-dcommit-clobber-series.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/t9106-git-svn-dcommit-clobber-series.sh b/t/t9106-git-svn-dcommit-clobber-series.sh
index 7eff4cd..d59acc8 100755
--- a/t/t9106-git-svn-dcommit-clobber-series.sh
+++ b/t/t9106-git-svn-dcommit-clobber-series.sh
@@ -53,4 +53,10 @@ test_expect_success 'change file but in unrelated area' "
test x\"\`sed -n -e 61p < file\`\" = x6611
"
+test_expect_failure 'attempt to dcommit with a dirty index' '
+ echo foo >>file &&
+ git add file &&
+ git svn dcommit
+'
+
test_done