desktop: GitHub wiki repos not detected correctly, asks user to publish again
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)
About this issue
- Original URL
- State: open
- Created 6 years ago
- Reactions: 18
- Comments: 57 (3 by maintainers)
sad that this has been in backlog for 4 years
same issue here - don’t want to move to another application etc… any hope this will be fixed?
Same problem
Same issue as @Rauschii and others above for me in GitHub Desktop v2.9.3 (x64)
“Can’t find repository matching {myorg}/{myrepo}.wiki.git”
And yet I can clone using command line git using the same.
Any news on when this will be fixed?
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.
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 aturl.git@github.com:.pushinsteadof=https://github.com/)Hope this information is useful to someone.
Any chance this bug could get upgraded to a higher priority level? It is one of the top 10 most commented on open issues in this repo. And the wiki feature is difficult to use without this fix. @shiftkey @tierninho @billygriffin
This is still an issue in version 2.2.4 of GitHub Desktop for Windows. It might be kinda helpful if the relevant menu options (i.e. push/pull) were greyed-out for wiki repos.
Thanks for the instructions @KEINOS
You can use Menu / Repository / Open in Terminal to save you having to cd to the repo path before doing your
git push. This option also has the Ctrl-BackQuote shortcut on macos.@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 #2061, and because this is silently erroring I think we can defer that. Let’s move discussion about that over to #2061.
If you don’t want to follow this thread, unfollow it.
This only seems to be happening with wikis. The repos work just fine. Still happening as of 8/31. On Version 1.3.4 for Windows.
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
git@github.com: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).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).
Set the remote upstream URL to the original wiki repo (note the target repo).
Check the remote
Launch GitHub Desktop and try edit/commit/push.
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
Pls cancel this not intersted
On Tue, 19 Mar 2024, 3:12 am Jan Brasna, @.***> wrote:
+1 Please fix this.
(from xkcd 2881)
Can anyone solve this?
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”.
Please fix this.
Or, at the least, provide a way to backup the wiki from Github Desktop or the web interface.
Fails for me when trying to clone an enterprise GitHub wiki too. I was shocked to find that this has been a known issue for 4 years.
If I was able to upload (or drag-and-drop) images to the web UI wiki, I wouldn’t need to clone the wiki in the first place. I’m shocked that adding images to a wiki is so hard. It’s like GitHub doesn’t want us to use their wiki function. I can upload images easily to this comment, but not a wiki editor.
working with github desktop and a wiki repository seems not at all to be supported unfortunately. Could you please double-check the whole scenario? (clone repo, push etc) I can clone from the command line but then the local directory is not recognized by desktop
still there with 1.3.4 . . . . . clicking on the ‘Fetch origin’ wheel still does not trigger anything from the GUI
same as @olange
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.@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:
@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?