Index: src/add.c
===================================================================
--- src/add.c
+++ src/add.c
@@ -163,10 +163,12 @@
   for(i=2; i<g.argc; i++){
     char *zName;
     int isDir;
 
     zName = mprintf("%/", g.argv[i]);
+    file_simplify_name(zName, -1);
+
     isDir = file_isdir(zName);
     if( isDir==1 ){
       add_directory(zName, vid, &repo);
     }else if( isDir==0 ){
       fossil_fatal("not found: %s", zName);
@@ -252,10 +254,12 @@
   db_begin_transaction();
   for(i=2; i<g.argc; i++){
     char *zName;
 
     zName = mprintf("%/", g.argv[i]);
+    file_simplify_name(zName, -1);
+
     if( file_isdir(zName) == 1 ){
       del_directory_content(zName);
     } else {
       char *zPath;
       Blob pathname;

