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

Not standard project structure #15

Open
rubtk opened this issue Mar 10, 2017 · 2 comments
Open

Not standard project structure #15

rubtk opened this issue Mar 10, 2017 · 2 comments

Comments

@rubtk
Copy link

rubtk commented Mar 10, 2017

Hello! I have an non standard project structure - my .cpp \ .h files and .sln \ project belongs to different dirs. The idea is like that:
Root Folder
----> ProjectFolder1
-------->.git is here!
-------->Headers
-------->Sources
----> ProjectFolder2
-------->.git is here!
-------->Headers
-------->Sources
----> ProjectFolder3
-------->.git is here!
-------->Headers
-------->Sources
----> Control folder
--------> Few other folders
------------>Solutions and projects folder
So, when i open git bash i am here "Solutions and projects folder", not in the "ProjectFolder1-3".
When i click buttons Tortoise write me an error message, coz it can not find .git folder.
How i can solve that problem?

P.S
MSVS 2012

@MattDavies
Copy link
Member

Which folder would you expect the commands to work against, given you have multiple .git folders in the solution?

I think git bash opening at the solution level is still correct in that scenario as you can then traverse down manually into the right folder.

@rubtk
Copy link
Author

rubtk commented Mar 13, 2017

Thanks for attention!
I think that would be a good possibility to manage git folders manually for complex projects.
For example have additional project\solution property called "Git path". There could be different situations. User may keep one .git folder for whole solution, or each .git folder per project.
In my case, i need to keep .git folders near sources and have solution&projects in another directory. Thats not my whim, just an SDK for C++ i use made me organize files way like that. Now i click any button at toolbar and tortoise shows me Message Box "No working directory found". So, problem is not only with GitBash, but with whole toolbar and i dont know how to solve it.
So my suggestion is to add support for complex projects.

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

2 participants