-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Folder structure sometimes combined into 1 path #34282
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
Comments
Can you push the repository to https://demo.gitea.com ? I think this is a feature rather than a bug. |
This is going to be a bit of a long post, sorry for that. Also, I kinda "abused" the demo gitea site to test things out, so expect a lot of repo's in my account 😁 Ok, made an account at the demo site, created a repo called Oddly enough, this behaves as as it should or as I expect at least. Steps I took:
And when I go look at the repo, I see that the Gitea Demo site has the folder structure and file as I would expect and looks perfectly fine. I started digging a bit and decided to look at what might be different. I started with looking at Long story short, the patterns I have no answer on why this is all happening, all I can say and do is that this is repeatable by playing around with This makes no sense and I start to doubt if Gitea is doing this or this is a git problem, either in general or specifically on my end. A generic issue with matching patterns in For now I will make the call to not have I found an article on github from someone on what to do with I did do a little a test on the demo repo called Deleted the Result was that the I'm a bit lucky that my If this is not a Gitea problem but this is something on my end with how I use git then I would appreciate it tremendously if someone could tell me what I am doing wrong. And if you need more information or more testing on my end, I'm glad to be of help and assistance of course! Cheers! |
It's not that complex. In short: if there is only one sub folder in a folder, then it will be folded into one path. It behaves as most mainstream applications do. |
Ok, I had a talk with @yusing about this (shameless plug for his awesome Godoxy project 😉) and it makes 'sense' now. An empty folder will be folded (thanks @wxiaoguang for the correct terminology) as empty folders are a bit different as I expect and am used to. It 'feels' so weird to have a path/folder structure fold like that, so much so that I concluded this must be a mistake and something went wrong 😀 This is more of a git behavior I suppose as git also doesn't want to add an empty folder when you try to add/commit it. It will do this though if a child folder does have a file in it, then the empty parent folder is added but in a different way. As for mainstream applications, I have no idea and I suppose this is correct but from my experience working on filesystems I have never had folders fold like this. Whether it was on DOS, Windows, Linux, AS400, if you want an empty folder you get an empty folder. Anyway, this is a different discussion I suppose so I'll stop about it. Thanks for the time and attention everybody! Cheers! |
I see, for applications using a underlying filesystem and interpreting it in the UI. Never knew or thought about that! Filesystems on the other hand, no folding that I know of 😀 Thanks! |
Description
When I add a file the Gitea interface sometimes shows the full path combined in the list
Adding a file called "Send-WOL.ps1" located in my local folder "personal/powershell/wakeonlan" by executing "git add Send-WOL.ps1", commit and push I see the whole path as one. When I click on it I will be taken straight to the file. I can however step back in the folder structure piece by piece. I think the screenshot explains it better.
Adding a file (like README) to the "personal" folder eliminates that folder from being combined.
Not sure if this is intended but it confused me and I am not sure if my commit to Gitea was as it should be.
My expectation would be to click through the folder structure until I arrive at the file itself.
Screenshots
Here you see the path (2 parts) combined into 1
Gitea Version
1.23.5
Can you reproduce the bug on the Gitea demo site?
No
Operating System
Apline Docker host, MacOS client
Browser Version
Firefox 137.0.2
The text was updated successfully, but these errors were encountered: