fix problem with example

This commit is contained in:
Joey Hess 2021-03-01 13:09:22 -04:00
parent a8b627d82b
commit a217f92dc1
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 10 additions and 0 deletions

View file

@ -39,6 +39,7 @@ repository. So, enable annex.thin with care.
# git annex unlock photo.jpg
# gimp photo.jpg
# git annex add photo.jpg
# git annex lock photo.jpg
# git commit -m "redeye removal"

View file

@ -0,0 +1,9 @@
[[!comment format=mdwn
username="joey"
subject="""re: issue with example"""
date="2021-03-01T17:07:06Z"
content="""
`git-annex lock` wouldn't erase any modifications, but it would fail
due to the file being modified. Fixed the example to use `git-annex add`
before locking.
"""]]