I am using svn add * to add files to the svn, and it adds the config file which is for sure added to ignore.
lyuba@lyuba-laptop:/workspace/project$ svn propget svn:ignore
.sass-cache
config.js
What can cause the problem?
Super old Question but I ran into this issue just now and the solution I found is not listed here. Adrian Smith's answer is on the right track. I assume the docs and SVN itself have seen many updates in 5 years. Here is what I found in the SVN docs
Even if
svn:ignore
is set, you may run into problems if you use shell wildcards in a command. Shell wildcards are expanded into an explicit list of targets before Subversion operates on them, so runningsvn SUBCOMMAND *
is just like runningsvn SUBCOMMAND file1 file2 file3 …
. In the case of thesvn add
command, this has an effect similar to passing the--no-ignore
option. So instead of using a wildcard, usesvn add --force .
to do a bulk scheduling of unversioned things for addition. The explicit target will ensure that the current directory isn't overlooked because of being already under version control, and the--force
option will cause Subversion to crawl through that directory, adding unversioned files while still honoring thesvn:ignore
property andglobal-ignores
runtime configuration variable. Be sure to also provide the--depth files
option to thesvn add
command if you don't want a fully recursive crawl for things to add.
The short version is use svn add --force .
This works perfectly for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With