]> asedeno.scripts.mit.edu Git - git.git/blobdiff - t/t9200-git-cvsexportcommit.sh
git-cvsexportcommit can't commit files which have been removed from CVS
[git.git] / t / t9200-git-cvsexportcommit.sh
index 56b7c06921d9ef3b72ff3ee6f62f7a1c426b3028..ef1f8d22f67187089ff88811457d8e26cf354047 100755 (executable)
@@ -317,4 +317,22 @@ test_expect_success 'use the same checkout for Git and CVS' '
 
 '
 
+test_expect_success 're-commit a removed filename which remains in CVS attic' '
+
+    (cd "$CVSWORK" &&
+     echo >attic_gremlin &&
+     cvs -Q add attic_gremlin &&
+     cvs -Q ci -m "added attic_gremlin" &&
+     rm attic_gremlin &&
+     cvs -Q rm attic_gremlin &&
+     cvs -Q ci -m "removed attic_gremlin") &&
+
+    echo > attic_gremlin &&
+    git add attic_gremlin &&
+    git commit -m "Added attic_gremlin" &&
+       git cvsexportcommit -w "$CVSWORK" -c HEAD &&
+    (cd "$CVSWORK"; cvs -Q update -d) &&
+    test -f "$CVSWORK/attic_gremlin"
+'
+
 test_done