5

I want to use this simple command, which is already recursive:

svn add *

The problem is that the shell (ash) does not expand the asterisk to hidden files, i.e. files whose name begin with a dot.

dash17291
  • 1,002
  • 2
  • 14
  • 27

3 Answers3

4

AFAIK, you just can to use:

svn add directory

Every file and subdirectory will be added correctly.

1

As far as I know, neither bash nor tcsh do that either. Simply use svn add * .* then.

Shi
  • 697
  • svn: Skipping argument: '.svn' ends in a reserved name svn: warning: '.' is already under version control
    svn: Path '..' ends in '..', which is unsupported for this operation # svn status ? .test
    – dash17291 Aug 19 '12 at 15:37
  • @dash17291: svn add * in a directory which already is a working copy usually results in SVN complaining about items already added. Same happens when you "manually" try to add the very same file a second time. – Shi Aug 19 '12 at 16:03
-2

svn add --depth infinity directory Directory and all files will be included