-
Notifications
You must be signed in to change notification settings - Fork 166
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
SGit should scan for new repos #14
Comments
This is difficult if the user changes the root directory and that contains other "folders" (i.e. not git repositories) |
Actually this is fairly straight forward as:
would be a good enough heurtistic |
Also the plan is to no longer use sqlite in the future and just do the above as required and remove the whole concept of "importing" local repos, all we really want to do is maintain a list of paths of "recently" accessed local repos. |
@maks what's about passwords/usernames then? Putting them in remote url doesn't seem to be good practice... |
Credentials can be stored in secure prefs and MGit already has a dependency on that library. |
@maks two things: most Git submodules use something like this:
as the |
@kaeptmblaubaer1000 Credentials are for remotes, so they need to be mapped to them, not to specific local repos, so it doesn't matter is a local repo is a submodule or not. |
@maks what's if there are multiple credentials? (e.g. if one has multiple GitHub accounts or there are different servers on the same server port) |
A remote is a specific repo not just a service or server. If you have multiple accounts that you use with a specific remote repo then you would need to differentiate between them with different URIs. |
@maks now I know what you mean, and it sounds good, except that I would have to enter my GitHub credentials again and again. |
Well yes, you would need to enter your credentials each time you clone from a new remote or add a new remote to an existing local repo, but that is not something that happens very often compared other operations. |
From @maks on August 24, 2016 5:13
SGit should do a dir listing of the top-level repo directory, to check for new repos that have been created by a tool other than SGit (ie. they are not in SGits sqlite db) and offer to "import" them for the user.
Copied from original issue: sheimi/SGit#239
The text was updated successfully, but these errors were encountered: