Skip to content

Repository is not rechecked on client restart and there is no option to simply refresh od auto-locate #4264

Closed

Description

@tobiasschuerg

Description

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":

image

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:
    image

  • Operating system:
    Windows 10 pro

Steps to Reproduce

  1. creata a virtual drive
  2. mount it
  3. create a git repro
  4. unmount
  5. -> "can't find"
  6. mount
  7. "can't find"
  8. restart client
  9. still "can't find"

Expected Behavior

That the old repository location is automatically checked (again and it is found - see bold points above).

  1. mount
  2. restart client
  3. 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).

Activity

  1. j-f1 commented on Mar 16, 2018

    @j-f1
    Contributor

    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).

  2. tobiasschuerg commented on Mar 17, 2018

    @tobiasschuerg
    Author

    Oh, right.

  3. tobiasschuerg commented on Mar 29, 2018

    @tobiasschuerg
    Author

    However, Github Desktop has the same issue:

    image

    Here I would like to have an option such as: Refresh or Try Again or even better it would refresh automatically (on repo change).

  4. iAmWillShepherd commented on Apr 3, 2018

    @iAmWillShepherd
    Contributor

    @tobiasschuerg, would you mind updating your original issue description with what you just posted?

  5. tobiasschuerg commented on Apr 3, 2018

    @tobiasschuerg
    Author

    done

  6. added
    help wanted
    on Apr 7, 2018
  7. shiftkey commented on Apr 7, 2018

    @shiftkey
    Member

    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.

  8. shiftkey commented on Nov 14, 2018

    @shiftkey
    Member

    I added some extra context in #5734 (comment) about the behaviour of a very similar issue to this report.

  9. msftrncs commented on Nov 18, 2018

    @msftrncs
    Contributor

    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.

  10. shiftkey commented on Jan 20, 2019

    @shiftkey
    Member

    Resolved by #6228

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementhelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions