Diff
Not logged in

Differences From:

File src/checkin.c part of check-in [e0580dfeee] - Honor the -f flag on commit. (It was using -r in place of -f due to a typo, apparently.) by drh on 2008-02-04 00:25:00. [view]

To:

File src/checkin.c part of check-in [b3ec774ab7] - Fail with an error if a file is outside the checkout tree. by drh on 2008-02-08 16:24:24. [view]

@@ -291,11 +291,9 @@
     g.aCommitFile = malloc(sizeof(int)*(g.argc-1));
 
     for(ii=2; ii<g.argc; ii++){
       int iId;
-      if( !file_tree_name(g.argv[ii], &b) ){
-        fossil_fatal("file is not in tree: %s", g.argv[ii]);
-      }
+      file_tree_name(g.argv[ii], &b);
       iId = db_int(-1, "SELECT id FROM vfile WHERE pathname=%Q", blob_str(&b));
       if( iId<0 ){
         fossil_fatal("fossil knows nothing about: %s", g.argv[ii]);
       }