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

Cannot edit annexed text file with WebUI (but edit the pointer file instead!) #134

Open
FPa-riken opened this issue Nov 9, 2022 · 1 comment

Comments

@FPa-riken
Copy link

Describe the bug

The WebUI conveniently allows to edit any text file (xml, markdown, etc.) online, but when the file content is annexed, the pointer file or symlink target is loaded in the online Editor instead of the actual content.

GIN version
gin-live-2020-10-24

To Reproduce

  1. Create a repo with some annexed text file :
mkdir annexed-text ; cd annexed-text
gin create --here annexed-text "Repo with annexed text files"
echo "This file should be editable using the WebUI" > README.md
git annex add README.md
gin commit -m "initial commit" .
gin upload .
  1. Open WebUI, go to repo main page, click on README.md: the annexed content is correctly displayed
    image

  2. Then click on "Edit this file" button at the right: the content of the pointer file is loaded and can be modified.
    image

@FPa-riken
Copy link
Author

(for info, the issue is also present in the latest version)

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

1 participant