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

Cloning template repository fails #11196

Closed
ghost opened this issue Dec 7, 2020 · 7 comments
Closed

Cloning template repository fails #11196

ghost opened this issue Dec 7, 2020 · 7 comments

Comments

@ghost
Copy link

ghost commented Dec 7, 2020

Describe the bug

Cloning a template-based repository from Github.com fails. It pulls the template, rather than the new repository, but places it in a directory named after the new repository.

Version & OS

2.6.0 on Windows 7

Steps to reproduce the behavior

  1. Create a new repository on Github.com based on a template
  2. Go to Github Desktop and clone the new repository to your local machine
  3. Observe "cloning template" message, and then new repository created with TEMPLATE contents instead of new repo contents.

Expected behavior

The new repository should be a clone of the associated Github.com repository

Actual behavior

The new repository is a clone of the template repository

Screenshots

Add screenshots to help explain your problem, if applicable.

Logs

Attach your logs by opening the Help menu and selecting Show Logs..., if applicable.

Additional context

Add any other context about the problem here.

@steveward steveward added the more-info-needed The submitter needs to provide more information about the issue label Dec 7, 2020
@steveward
Copy link
Member

Thanks for the report @dbe-fremantle. I just tested this out and was unable to reproduce the issue. Are you able to consistently reproduce this issue?

Could you also upload the log file from GitHub Desktop so that I could get some more information about this error? To access the log files go to the file menu in GitHub Desktop and select Help > Show Logs.
The log files are created daily -- please upload a log file as an attachment from a day where you experienced the issue.

@ghost
Copy link
Author

ghost commented Dec 7, 2020

See below. It is consistently just pulling the template, despite me cloning the "new".

2020-12-07T18:35:38.300Z - info: [ui] [BranchPruner] Last prune took place in a day - skipping 2020-12-07T18:35:58.897Z - info: [ui] [AppStore.getAccountForRemoteURL] account found for remote: https://github.com/dbe-fremantle/template.git - dbe-fremantle (has token) 2020-12-07T18:36:00.786Z - info: [ui] Executing clone: git -c credential.helper= -c protocol.version=2 clone --recursive --progress -- https://github.com/dbe-fremantle/template.git C:\Users\Documents\GitHub\new (took 1.784s) 2020-12-07T18:36:00.814Z - info: [ui] [AppStore] adding repository at C:\Users\Documents\GitHub\new to store 2020-12-07T18:36:00.995Z - info: [ui] [BranchPruner] No branches to prune. 2020-12-07T18:36:06.489Z - info: [ui] Executing isUsingLFS: git lfs track (took 5.598s) 2020-12-07T18:36:09.760Z - info: [ui] [BranchPruner] No branches to prune. 2020-12-07T18:36:10.756Z - info: [ui] Executing fetch: git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin (took 1.053s) 2020-12-07T18:36:49.706Z - info: [ui] [BranchPruner] Last prune took place in a day - skipping

@no-response no-response bot removed the more-info-needed The submitter needs to provide more information about the issue label Dec 7, 2020
@ghost
Copy link
Author

ghost commented Dec 7, 2020

So actually it is worse than I thought. I can clearly see all my repositories, but when I clone the "new" repo (based on the template) it is just pulling the template git and placing it in a directory called "new".

@ghost
Copy link
Author

ghost commented Dec 7, 2020

I even manually entered the URL for the "new" repository and it overrode it with the template URL!

@ghost
Copy link
Author

ghost commented Dec 7, 2020

If I rename the "new" repository and then clone it again, it works. But if I change the name back to "new", it reverts to the old behavior. It's annoying because in this instance I need the "new" name. I am wondering if this is because the template repository at one point was named "new", i.e. I went like this:

Create new repository: New
Rename New to Template and convert to template repository
Create new repository New from Template
Clone New => FAIL
Rename New to New-2, Clone New-2 => SUCCESS
Rename New-2 back to New, Clone New => FAIL

@ghost
Copy link
Author

ghost commented Dec 7, 2020

Cleared all local storage via developer tools and still failing.

@steveward
Copy link
Member

Thanks for the extra details @dbe-fremantle. This sounds like similar behavior to what has been reported in #3855. You should be able to resolve this issue by closing GitHub Desktop, clearing out C:\Users\ <your_user> \AppData\Roaming\GitHub Desktop\Cache, and then launching the app again.

Since we're tracking this issue I'm going to close this out, but let me know if clearing out the cache doesn't get things working.

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

1 participant