Repository navigation
Closed
Labels
bugConfirmed bugs or reports that are very likely to be bugspriority-3Bugs that affect small number of users and/or relatively cosmetic in nature
Description
Description
After clone a wiki repository and close GithubDesktop can no longer identify the origin.
Version
GitHub Desktop version: 1.0.12 and 1.0.13
git rev-parse HEAD: 372c2548553eac84ceef398fa0326c5815c919cc
OS version: Microsoft Windows [version 6.3.9600]
Steps to Reproduce
- Clone a wiki repository
- Close and reopen GithubDesktop
- Edit any file
- Commit
- Click in "Push origin"
Expected behavior: push to origin
Actual behavior: after close and reopen settings are losing, but after click in "push to origin" is failed and is showed this window:
Reproduces how often: Whenever the GithubDesktop is closed.
Logs
2018-01-22T02:23:25.457Z - info: [ui] [AppStore] loading 15 repositories from store
2018-01-22T02:23:25.509Z - info: [ui] [AppStore] found account: brcontainer (Guilherme Nascimento)
2018-01-22T02:23:29.801Z - info: [ui] Executing getStatus: git status --untracked-files=all --branch --porcelain=2 -z (took 4.434s)
2018-01-22T02:23:29.851Z - info: [ui] Executing getRecentBranches: git log -g --no-abbrev-commit --pretty=oneline HEAD -n 2500 -- (took 4.319s)
2018-01-22T02:23:29.851Z - info: [ui] Executing getBranches: git for-each-ref --format=%(refname)%00%(refname:short)%00%(upstream:short)%00%(objectname)%00%(author)%00%(parent)%00%(symref)%00%(subject)%00%(body)%00%1F refs/heads refs/remotes (took 4.325s)
2018-01-22T02:23:30.975Z - info: [ui] launching: 1.0.12 (Windows 6.3.9600)
2018-01-22T02:23:36.013Z - info: [ui] Executing installGlobalLFSFilter: git lfs install --skip-repo (took 5.319s)
2018-01-22T02:23:46.656Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 4.006s)
2018-01-22T02:29:46.275Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 1.870s)
2018-01-22T02:31:55.916Z - warn: [ui] fetchRepository: 'inphinit/inphinit.wiki' returned a 404
2018-01-22T02:35:28.062Z - warn: [ui] fetchRepository: 'inphinit/inphinit.wiki' returned a 404
2018-01-22T02:35:28.065Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: inphinit.wiki - brcontainer (has token)
2018-01-22T02:41:10.556Z - info: [main] Received possible protocol arguments: 4
2018-01-22T02:41:10.561Z - info: [main] Processing protocol url
2018-01-22T02:41:24.390Z - warn: [ui] fetchRepository: 'inphinit/inphinit.wiki' returned a 404
2018-01-22T02:41:24.392Z - info: [ui] [AppStore.getAccountForRemoteURL] account found for remote: https://github.com/inphinit/inphinit.wiki.git - brcontainer (has token)
2018-01-22T02:41:28.905Z - info: [ui] Executing clone: git -c credential.helper= clone --recursive --progress -- https://github.com/inphinit/inphinit.wiki.git C:\Users\Latitude E6410\Documents\GitHub\inphinit.wiki (took 4.355s)
2018-01-22T02:41:28.952Z - info: [ui] [AppStore] adding repository at C:\Users\Latitude E6410\Documents\GitHub\inphinit.wiki to store
2018-01-22T02:41:29.637Z - warn: [ui] fetchRepository: 'inphinit/inphinit.wiki' returned a 404
2018-01-22T02:41:30.064Z - info: [ui] Executing isUsingLFS: git lfs track (took 1.036s)
2018-01-22T02:41:30.998Z - warn: [ui] Unable to fetch issues for inphinit/inphinit.wiki
Error: Cannot get issues for a repository that hasn't been inserted into the database!
at Object.n [as fatalError] (C:\Users\Latitude E6410\AppData\Local\GitHubDesktop\app-1.0.12\webpack:\external "path":1:1)
at t.IssuesStore.getLatestUpdatedAt (C:\Users\Latitude E6410\AppData\Local\GitHubDesktop\app-1.0.12\webpack:\app\src\lib\stores\issues-store.ts:29:24)
at t.IssuesStore.fetchIssues (C:\Users\Latitude E6410\AppData\Local\GitHubDesktop\app-1.0.12\webpack:\app\src\lib\stores\issues-store.ts:66:5)
at oe._updateIssues (C:\Users\Latitude E6410\AppData\Local\GitHubDesktop\app-1.0.12\webpack:\app\src\lib\stores\app-store.ts:830:6)
at oe._selectRepository (C:\Users\Latitude E6410\AppData\Local\GitHubDesktop\app-1.0.12\webpack:\app\src\lib\stores\app-store.ts:799:5)
at t.Dispatcher.selectRepository (C:\Users\Latitude E6410\AppData\Local\GitHubDesktop\app-1.0.12\webpack:\app\src\lib\dispatcher\dispatcher.ts:167:4)
at appStore._completeOpenInDesktop (C:\Users\Latitude E6410\AppData\Local\GitHubDesktop\app-1.0.12\webpack:\app\src\lib\dispatcher\dispatcher.ts:390:13)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:109:7)
2018-01-22T02:41:31.389Z - warn: [ui] fetchRepository: 'inphinit/inphinit.wiki' returned a 404
2018-01-22T02:42:13.909Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: inphinit.wiki - brcontainer (has token)
2018-01-22T02:42:17.395Z - info: [ui] Executing push: git -c credential.helper= push origin master:master --progress (took 3.459s)
2018-01-22T02:42:24.142Z - warn: [ui] fetchRepository: 'inphinit/inphinit.wiki' returned a 404
2018-01-22T02:42:27.256Z - warn: [ui] fetchRepository: 'inphinit/inphinit.wiki' returned a 404
2018-01-22T02:42:27.256Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: inphinit.wiki - brcontainer (has token)
2018-01-22T02:42:28.791Z - warn: [ui] fetchRepository: 'inphinit/inphinit.wiki' returned a 404
2018-01-22T02:42:28.791Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: inphinit.wiki - brcontainer (has token)
2018-01-22T02:42:29.326Z - warn: [ui] fetchRepository: 'inphinit/inphinit.wiki' returned a 404
2018-01-22T02:42:29.327Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: inphinit.wiki - brcontainer (has token)
2018-01-22T02:42:29.827Z - warn: [ui] fetchRepository: 'inphinit/inphinit.wiki' returned a 404
2018-01-22T02:42:29.827Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: inphinit.wiki - brcontainer (has token)
2018-01-22T02:50:16.035Z - info: [ui] [AppStore] loading 15 repositories from store
2018-01-22T02:50:16.040Z - info: [ui] [AppStore] found account: brcontainer (Guilherme Nascimento)
2018-01-22T02:50:16.873Z - info: [ui] launching: 1.0.12 (Windows 6.3.9600)
2018-01-22T02:50:17.609Z - warn: [ui] fetchRepository: 'inphinit/inphinit.wiki' returned a 404
2018-01-22T02:58:33.848Z - warn: [ui] fetchRepository: 'inphinit/inphinit.wiki' returned a 404
2018-01-22T02:58:33.852Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: inphinit.wiki - brcontainer (has token)
Reacted by Serkan Holat, Olivier Lange, alexvoid, Oromion, KEINOS, salmon, tustin2121, Laurens von Assel, CJ, Geoffrey McGill and 8 more
Metadata
Metadata
Assignees
Labels
bugConfirmed bugs or reports that are very likely to be bugspriority-3Bugs that affect small number of users and/or relatively cosmetic in nature

Activity
[-]Wiki repositories lose "origin"[/-][+]Wiki repositories losing "origin"[/+]shiftkey commentedon Jan 30, 2018
@brcontainer apologies for the delay in replying
Can you clarify how this is being cloned? Using the regular clone URL? Or doing it via the command line and adding the folder to the repository?
brcontainer commentedon Jan 30, 2018
@shiftkey clicking in "Clone in Desktop" button in any wiki repository, example:
Edited:
Note in non-wiki reposirorys the console not show errors, but repositories from github-wiki show 404 error (HTTP), see image:
j-f1 commentedon Jan 30, 2018
It looks like we’re trying to get information from the API for the wiki, but GitHub’s API doesn’t support wikis. Maybe we should strip of the
.wikiand use the same information as the parent.brcontainer commentedon Jan 30, 2018
@j-f1 exactly, this will probably cause problems with non-github repositories too.
shiftkey commentedon Feb 1, 2018
@brcontainer thanks for the extra details. I was able to reproduce this.
I think there's two different problems here:
detecting it is a GitHub repository and not displaying the "Publish" dialog. We should fix this sooner rather than later because we should be able to identify a GitHub or GitHub Enterprise wiki using your configured accounts.
when refreshing the repository, making sure it doesn't try to fetch issues/PRs/things it doesn't have. This is already logged in wiki repositories don't refresh because they're not part of the API #2061, and because this is silently erroring I think we can defer that. Let's move discussion about that over to wiki repositories don't refresh because they're not part of the API #2061.
[-]Wiki repositories losing "origin"[/-][+]GitHub wiki repos not detected correctly, asks user to publish again[/+]bygben commentedon Feb 15, 2018
I guess this bug is confirmed but I can confirm I'm seeing this bug too.
jalovatt commentedon Apr 24, 2018
Any word on this? I just ran into the same thing.
Cheers.
slgraff commentedon May 30, 2018
I just ran into this as well. Created a new wiki on GitHub.com, cloned it to Desktop, and added a file. When attempting to push get the
Repository creation failed. (name cannot end in .wiki)error.olange commentedon Jun 15, 2018
I probably have the same issue: I can't fetch from any of my GitHub Wiki repositories with GitHub Desktop v1.2.3 for Mac OSX High Sierra, nothing happens when I click on button Fetch origin.
I am using SSH authentication and remote origin URL looks like
[email protected]:user/myrepo.wiki.git.Note that it worked well with previous version of the GitHub Desktop app, and fetching/pulling/pushing works well from
giton command line. Otherwise, my GitHub Desktop app works well with my other « regular » GitHub repositories (that is, non-Wiki repositories).Alexejhero commentedon Jul 8, 2018
Any news on when this will be fixed?
37 remaining items
alastaira commentedon Nov 25, 2022
Gah, just encountered this myself :( I can't clone the wiki using Github Desktop, and if I clone it with the command line, I can't push any changes back either. Tried with all sorts of combinations of /wiki .wiki etc.
KEINOS commentedon Nov 29, 2022
More research is needed, but in my environment, a
git pushfrom GitHub Desktop to a cloned wiki is always successful.Steps I took
This is the target example repo: https://github.com/KEINOS/wiki-test/wiki
git clone.$ git clone https://github.com/KEINOS/wiki-test.wiki.git$ github ..My guess
As you can see, apart from cloning the wiki repository with the
git clonecommand, all operations such asadd,commitandpushare performed from the GitHub Desktop GUI.My guess is:
GITHUB_TOKENis set.GITHUB_TOKEN
This is the log of a successful attempt (the
git pushcommand). Note, however, that attempts to access the GitHub API fail with a 404 error.Full log of the above
This means that GitHub Desktop treats the wiki like a GitHub repository. However, it does not provide the required API. So it is a normal Git repository.
Note the first line in the log "
account found for repository: wiki-test.wiki - KEINOS (has token)". This could be the key to a successfulgit push.Due to the use of 2FA, I'm setting a personal access token in my environment variable
GITHUB_TOKEN. This was the first thing I thought to take into account.pushinsteadOf(url.<base>.pushInsteadOf)Another is the
pushURL.Note that the remote URL on
pushis set to SSH and not HTTP. Even we cloned viagit cloned https://github.com/....This is due to the unified
pushbehavior when cloning repos via SSH or HTTP by globally configuring the url.<base>.pushInsteadOf option. (See the line at[email protected]:.pushinsteadof=https://github.com/)Hope this information is useful to someone.
JamesBremner commentedon Jun 12, 2023
Please fix this.
Or, at the least, provide a way to backup the wiki from Github Desktop or the web interface.
jaymutzafi commentedon Jun 23, 2023
It would be nice to be able to use Github Desktop to work with a repo's wiki directly. I hope this is addressed at some point.
kevinkifer-ocp commentedon Sep 22, 2023
GitHub Desktop version 3.2.9 (x64) , git version 2.41.0.windows.2 (64-bit), Windows 11 Home 22H2 OS build 22621.2283.
Still reporting an error when attempting to clone a WIKI.
The Address being used in both was copied directly from the GitHub WIKI page using the button "Clone this wiki locally".
shadu120 commentedon Oct 10, 2023
Can anyone solve this?
ronhombre commentedon Jan 18, 2024
I come here to say that it's still broken
MaddyGuthridge commentedon Jan 19, 2024
(from xkcd 2881)
Hackmancoltaire commentedon Mar 16, 2024
+1 Please fix this.
janbrasna commentedon Mar 18, 2024
Back in the day when .wiki repositories were treated as "Other" i.e. not under GitHub.com or user/org headings in @desktop, everything seemed to work back then.
Couldn't the repos for which GH API doesn't return the needed values be treated as classic git repos in the client? Or maybe shim it by checking the
.wiki.gitbit and make that fall back to "plain" git operations, disabling all the PR/issue/meta features and just allow a vanilla git access?ziyanazma commentedon Mar 18, 2024
HedvigS commentedon Mar 18, 2024
If you don't want to follow this thread, unfollow it.
KEINOS commentedon Mar 20, 2024
I found to be stable by treating the wiki repo as an external git service, such like gitlab/gitea/etc.
Meaning. Taking the same way to fork the gitlab/gitea repos to GitHub.
Let's pretend that I have a GitHub repo (KEINOS/wiki-test) which contains a wiki (KEINOS/wiki-test.wiki).
And I want to manage the wiki with PR/CI or whatever the gitflow.
Here are the steps I took:
Prepare a GitHub repo with a wiki in it.
E.g.) KEINOS/wiki-test
Clone the GitHub wiki to local.
E.g.) KEINOS/wiki-test.wiki
In GitHub, create a brand new GitHub repo. This will be the working repo for the wiki.
E.g.) KEINOS/wiki-test-wiki
Set the remote origin URL to the newly created repo (note the target repo).
$ git remote set-url origin [email protected]:KEINOS/wiki-test-wiki.gitSet the remote upstream URL to the original wiki repo (note the target repo).
$ git remote add upstream [email protected]:KEINOS/wiki-test.wiki.gitCheck the remote
Launch GitHub Desktop and try edit/commit/push.
$ github .As soon as the commit is merged, you'll see that the committed changes reflects both the working repo and the original wiki.
Hope this helps for somebody. 🤞
My env and config info tesed
tidy-dev commentedon Sep 11, 2024
This has been fixed in #19152 and shipped in 3.4.5-beta1.
(There may be still some caveats with wiki, but if found, should be documented in a new issue)