Community
Participate
Working Groups
Yet another problem with repositories in subfolders. This time in UI. We assumed that Push command on git log should be visible only if we are displaying git log for the top folder of the repository. So far UI assumed that repositories may be located only in workspace top folders and displayed the Push command based on this knowledge. But now when we can have the repository top folder in the subfolder we can't use this assumption any more. We need something more reliable. Any ideas how can I distinguish between a main folder of the repository and its subfolder?
(In reply to comment #0) > Any ideas how can I distinguish between a main folder of the repository and its > subfolder? You could compare CloneLocation and your current Location. If they differ it means you're not in a root of a git repository.
btw, have a look at bug 344746.
Created attachment 197889 [details] git-log.js changes
Created attachment 197890 [details] gitCommands.js changes
I added a fix that requires support for deferred on visibleWhen, so I'm waiting for review on bug 349195, then it will have sense to push this changes.
done