You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Repository is not rechecked on client restart and there is no option to simply refresh od auto-locate #4264
I've some repros on removable storage. Sometimes I start the client before the storage is available and the client will say "can't fin xyz":
There is the "locate" option which works but is quite unhandy if the path didn't change.
Even after a program restart, the path is not checked again and the message still appears.
Therefore I'm missing a "try again", "refresh" or "auto-locate" -option which just makes the client re-check the already known location if the git repo is available again.
Version
GitHub Desktop:
Operating system:
Windows 10 pro
Steps to Reproduce
creata a virtual drive
mount it
create a git repro
unmount
-> "can't find"
mount
"can't find"
restart client
still "can't find"
Expected Behavior
That the old repository location is automatically checked (again and it is found - see bold points above).
mount
restart client
repo is foudn again
Actual Behavior
Client says "can't find" until the repo is manually relocated.
I would like to have an option such as: Refresh or Try Again or even better it would refresh automatically (on repo change).
I'm going to tag this as help wanted as I think this is reasonably isolated from the rest of the application. I'm not sure about the right UX for this, but we can try and implement something and get a feel for it.
The MissingRepository component is the one that needs updating, and the isGitRepository function is an easy way to see if the provided path is a Git repository.
I am thinking about trying my hand at providing the automatic recovery of a repository.
In 'missing-repository' I'd need to, without blocking the application,
wait for some period of time,
and then attempt to determine if the repository has returned,
if the repository has returned
return its state to NOT missing
if the repository state remains missing, repeat
if the user removes the repository
insure the repetitive checking is terminated
if the user attempts to locate the repository, or clones it again
insure the repetitive checking is terminated
insure if the user attempted to locate the repository or attempts to clone it again, but those processes fail, the repetitive checking is restarted.
An issue I see, is, isGitRepository would appear that it accepts the path even if it is a sub folder in the repository. How would this all work if the missing repository is actually a sub-repository and just the database files has disappeared? I would think that an automated recovery should require that a detected repository should have the same root path as the original.
It looks like 'relative-time' has some good references for creating and manipulating timers in this system.
So far this looks pretty simple and I am already about 90% done. :) So far its working with just simple renaming of the repository folder.
Activity
j-f1 commentedon Mar 16, 2018
Thanks! It looks like this issue is with the Classic apps, but this repository is for issues with the redesigned GitHub Desktop (see https://desktop.github.com).
tobiasschuerg commentedon Mar 17, 2018
Oh, right.
tobiasschuerg commentedon Mar 29, 2018
However, Github Desktop has the same issue:
Here I would like to have an option such as: Refresh or Try Again or even better it would refresh automatically (on repo change).
iAmWillShepherd commentedon Apr 3, 2018
@tobiasschuerg, would you mind updating your original issue description with what you just posted?
tobiasschuerg commentedon Apr 3, 2018
done
shiftkey commentedon Apr 7, 2018
I'm going to tag this as
help wantedas I think this is reasonably isolated from the rest of the application. I'm not sure about the right UX for this, but we can try and implement something and get a feel for it.The
MissingRepositorycomponent is the one that needs updating, and theisGitRepositoryfunction is an easy way to see if the provided path is a Git repository.shiftkey commentedon Nov 14, 2018
I added some extra context in #5734 (comment) about the behaviour of a very similar issue to this report.
msftrncs commentedon Nov 18, 2018
I am thinking about trying my hand at providing the automatic recovery of a repository.
In 'missing-repository' I'd need to, without blocking the application,
An issue I see, is,
isGitRepositorywould appear that it accepts the path even if it is a sub folder in the repository. How would this all work if the missing repository is actually a sub-repository and just the database files has disappeared? I would think that an automated recovery should require that a detected repository should have the same root path as the original.It looks like 'relative-time' has some good references for creating and manipulating timers in this system.
So far this looks pretty simple and I am already about 90% done. :) So far its working with just simple renaming of the repository folder.
shiftkey commentedon Jan 20, 2019
Resolved by #6228