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

Readme view displays Loading spinner in empty repo #522

Open
oznogon opened this issue May 10, 2024 · 0 comments
Open

Readme view displays Loading spinner in empty repo #522

oznogon opened this issue May 10, 2024 · 0 comments

Comments

@oznogon
Copy link

oznogon commented May 10, 2024

Describe the bug

The Readme tab for an initialized but empty repository shows the Loading spinner despite the repo not containing a readme (or anything else).

To Reproduce

  1. Create a new repo on a Soft Serve server: ssh soft repository create bugtest
  2. Connect to the server: ssh soft
  3. Open the empty new bugtest repo.

Expected behavior

Soft Serve displays No readme found. as it does in populated repos that lack a readme.

image

Screenshots

Soft Serve displays a Loading spinner that never progresses.

image

The repo is confirmed to be empty.

image

$ git clone ssh://soft/bugtest
Cloning into 'bugtest'...
warning: You appear to have cloned an empty repository.

Workaround

Commit and push any file to the hosted repo and the Readme tab displays No readme found. as expected.

$ touch boog
$ git add boog
$ git commit -m "boog!"
[master (root-commit) 4b588cd] boog!
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 boog
$ git push -u origin master
Enumerating objects: 3, done.
Counting objects: 100% (3/3), done.
Writing objects: 100% (3/3), 205 bytes | 205.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
To ssh://soft/bugtest
 * [new branch]      master -> master
branch 'master' set up to track 'origin/master'.

image

image

Environment (please complete the following information):

  • OS: Server running on Fedora 40, clients on Fedora 40, Ubuntu 22.04, Windows 11
  • Terminal: Reproduced in clients running bash and pwsh via Windows Terminal and bash and zsh running Konsole
  • Version: soft version v0.7.4

Additional context

N/A

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