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
Add Local Repository keeps showing the not-a-Git-repository warning after the path is corrected #22648
In Add Local Repository, the "This directory does not appear to be a Git repository" warning doesn't clear when you correct the path. Once it has appeared, it stays on screen for whatever you type next, including a perfectly valid repository, until you submit again.
While it's showing, it also offers:
Would you like to create a repository here instead?
which is being offered for a directory that already is a Git repository.
The path field itself is fine — clicking Add Repository re-validates and adds the repository normally. It's only the warning that's out of date, but it's fairly convincing while it's up.
Release version
3.6.3
Operating system
macOS 26.5.2 (arm64)
Steps to reproduce the behavior
File → Add Local Repository.
Enter a path that isn't a Git repository, e.g. ~/Documents.
Click Add Repository. The warning appears, as it should.
Without closing the dialog, change the path to a valid repository.
The warning is still there, and still offering to create a repository at a path that already has one.
Clicking Add Repository works — the repository is added and the warning goes away.
Log files
No response
Screenshots
No response
Additional context
The validation only ever runs on submit. onPathChanged calls updatePath, which just stores the path:
validatePath is only reached from addRepository and onTrustDirectory, and there's no componentDidUpdate or debounce doing it in the background, so showNonGitRepositoryWarning keeps whatever value the last submit left it with.
Worth noting validatePath already guards against races when it does run:
so re-validating as the path changes looks safe to add — a debounced call from onPathChanged would do it. Failing that, clearing showNonGitRepositoryWarning (and the bare/unsafe flags) whenever the path changes would at least stop the dialog stating something it no longer knows to be true.
Happy to open a PR for this if you'd like it — just say which approach you'd prefer.
Suggesting bug + priority-3: the "not a Git repository" warning is stale UI — it remains visible after the path is corrected and incorrectly offers to create a repository at a path that already contains one, as confirmed by the reporter's code analysis showing validatePath is only called on submit. No duplicate found. Priority 3 because clicking Add Repository re-validates correctly, so a workaround exists and no data is at risk.
I'd frame this as an enhancement rather than a bug. The Add Local Repository dialog was designed to validate the path on submission, so the warning reflecting the last submitted path is working as intended rather than being broken. That said, clearing the message when you change the input is a reasonable improvement, and we'd be open to it.
Just a heads up that this isn't marked as
help wantedIssues marked as ideal for external contributors
yet, so please do not submit a PR until the team had a chance to discuss this.
Thank you for your issue! We have categorized it as an enhancement (feature or improvement) request, and it has been added to our backlog. In doing so, we are not committing to implementing this feature at this time, but, we will consider it for future releases based on community feedback and our own product roadmap.
Unless you see the
help wantedIssues marked as ideal for external contributors
label, we are not currently looking for external contributions for this feature.
If you come across this issue and would like to see it implemented, please add a thumbs up! This will help us prioritize the feature. Please only comment if you have additional information or viewpoints to contribute.
Activity
desktop-triage commentedon Aug 4, 2026
Suggesting
bug+priority-3: the "not a Git repository" warning is stale UI — it remains visible after the path is corrected and incorrectly offers to create a repository at a path that already contains one, as confirmed by the reporter's code analysis showingvalidatePathis only called on submit. No duplicate found. Priority 3 because clicking Add Repository re-validates correctly, so a workaround exists and no data is at risk.babakks commentedon Aug 5, 2026
Thanks for the detailed write-up, @francisrath! 🙏
I'd frame this as an enhancement rather than a bug. The Add Local Repository dialog was designed to validate the path on submission, so the warning reflecting the last submitted path is working as intended rather than being broken. That said, clearing the message when you change the input is a reasonable improvement, and we'd be open to it.
Just a heads up that this isn't marked as help wantedIssues marked as ideal for external contributors
yet, so please do not submit a PR until the team had a chance to discuss this.
github-actions commentedon Aug 5, 2026
Thank you for your issue! We have categorized it as an enhancement (feature or improvement) request, and it has been added to our backlog. In doing so, we are not committing to implementing this feature at this time, but, we will consider it for future releases based on community feedback and our own product roadmap.
Unless you see the help wantedIssues marked as ideal for external contributors
label, we are not currently looking for external contributions for this feature.
If you come across this issue and would like to see it implemented, please add a thumbs up! This will help us prioritize the feature. Please only comment if you have additional information or viewpoints to contribute.
Add flags for GHD quirks the parity pass had copied
feat: flags for GitHub Desktop quirks the parity pass had copied: 104…
Add flags for GHD quirks the parity pass had copied
Add flags for GHD quirks the parity pass had copied
feat: flags for GitHub Desktop quirks the parity pass had copied: 104…