Comments (11)
Cool, thanks @David-Kunz.
a little unscientific @dlvhdr but seems like on all our systems the gh cli matches the git protocol that works. Just wanted to make sure.
from gh.nvim.
Closed! Thanks again @dlvhdr
from gh.nvim.
Aha!
🖭 gh config list
git_protocol=ssh
editor=
prompt=enabled
pager=
http_unix_socket=
browser=
That would be pretty cool, and probably the right thing to do, so you're thinking, on gh.nvim startup, do something like:
🖭 gh config get git_protocol
https
and then automatically set the git remote accordingly?
from gh.nvim.
Yes I think thats the approach
from gh.nvim.
Would you want to take on that PR? Seems relatively straight forward.
from gh.nvim.
Yeah I can do that
from gh.nvim.
Cool, we may want an "auto" flag in the "prefer_https_remotes" config value, where we dynamically look it up. This then still allows the user to force "ssh" or "https" if they want to. Maybe its useful?
from gh.nvim.
My intuition is that a user wouldn't need to define a different protocol for gh.nvim that is different than gh
.
I would add it in the future if there's an interest but I could be wrong here
from gh.nvim.
@David-Kunz in issue #15 you had to flip the "prefer_https_remote" flag in your private repo.
In this issue we are trying to determine if we looked at the "gh config list" command and set the remote type with the setting in there, would it have set the correct remote protocol for you?
Could you run that command in your private repo where you're using the "prefer_https_remote" flag and tell us the value of the "git_protocol" config.
from gh.nvim.
Hi @ldelossa,
When I execute gh config list
, the value is gh_protocol=https
.
Best regards,
David
from gh.nvim.
Thank occurred just now:
~/git/vim/litee-gh-testing remotes/litee-gh_ldelossa/litee-gh-testing/branch-1
🖭 gh config list
git_protocol=ssh
editor=
prompt=enabled
pager=
http_unix_socket=
browser=
~/git/vim/litee-gh-testing remotes/litee-gh_ldelossa/litee-gh-testing/branch-1
🖭 gh config get git_protocol
https
Weird lol. I manually set it to get it to work again.
~/git/vim/litee-gh-testing main
🖭 gh config set git_protocol ssh
~/git/vim/litee-gh-testing main
🖭 gh config get git_protocol
ssh
from gh.nvim.
Related Issues (20)
- Failed to determine if remote branch exists - auth problem HOT 1
- When toggling a thread the diff view lost colors
- Original side of diff is empty HOT 1
- Hostname is not respected in all calls.
- Failed if determine if remote branch exists HOT 1
- Comments appear on the wrong lines HOT 1
- not defaulting to telescope with lazy.nvim HOT 3
- UI/Rendering Questions HOT 1
- left side of diff always blank HOT 1
- Is this unavailable with vimScript and plug-vim? HOT 1
- [+] icon of column sign is not showing, randomly.
- [Question] what is the 'select' option for?
- Failed to list PRs HOT 1
- Pull requests with force pushes can't be opened
- windows support
- when submitting a review (comment/request changes) comment can only be one line HOT 1
- Have the ability to start a thread on the file not just the lines HOT 3
- Close all tmp buffers when closing prs HOT 1
- Error when opening a PR HOT 3
- Manage file viewed state in PR HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gh.nvim.