Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with "We add an at symbol to every name" #15

Open
MaximeCulea opened this issue May 8, 2022 · 2 comments
Open

Error with "We add an at symbol to every name" #15

MaximeCulea opened this issue May 8, 2022 · 2 comments

Comments

@MaximeCulea
Copy link

MaximeCulea commented May 8, 2022

This code generated errors and had to delete it:

# Untrack files that have been deleted.
# We add an at symbol to every name.
# See http://stackoverflow.com/questions/1985203/why-subversion-skips-files-which-contain-the-symbol#1985366
svn status | grep -v "^[ \t]*\..*" | grep "^\!" | awk '{print $2 "@"}' | xargs svn del --force --quiet

Not sure what it does since every time the svn folder is regenerated, right?

@binarykitchen
Copy link

Those code lines are throwing an error on my Ubuntu machine:

svn: E205001: Try 'svn help delete' for more information
svn: E205001: Not enough arguments provided

@binarykitchen
Copy link

The solution is to add -r before each xargs command like:

  find . -type f -name "*.jpg" \
    | awk '{print $0 "@"}' \
    | xargs -r svn propset --quiet --force svn:mime-type image/jpeg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants