Comments (9)
How much of this can be solved with the git-open config?
It says Gitlab
options, but we should rename that since it works with any repo
from git-open.
We should also rename the issue to "Bitbucket" instead of "Stash".
And yes, I agree, the config options for URL mapping should help with this. That should be the preferred option if the URL does not contain any hints about the type of server. I guess we could fire off a dummy request to the server and evaluate the response to figure out what server we're dealing with, but that sounds like overkill.
Maybe we could add an option that allows to set the kind of server for a given URL. So instead of setting up the URL mapping, we could configure that https://example.com/git/ is of type "Bitbucket" or something like that. Thoughts?
from git-open.
While you're right that the current version of git-open does not seem to support Stash SSH URLs, you're slightly off on the usage of HTTP URLs.
You can have write access on HTTP URLs as well (which will use authentication in that case), just like you have write access using SSH.
You can enable and configure HTTP/SSH access in your Stash configuration.
This is probably not relevant to your question, but I wanted to clear that up anyway 😄
from git-open.
Oh - thanks for the clarification. Would still be great to get support for Stash (which is becoming BitBucket) SSH urls. =)
from git-open.
+1
from git-open.
was this fixed by #36 ? anyone here confirm?
Please provide sample URLs if still broken and I'll add to backlog
from git-open.
#36 just fixed it for the hosted bitbucket.org, not the self-hosted stash/bitbucket server for SSH. (http/https is supported already).
Using @kenahoo's example, the git remotes could look like:
https://[email protected]/scm/foo/ken-homedir.git
or:
ssh://[email protected]:7999/foo/ken-homedir.git
And then you would open this URL in your browser:
https://stash.server.local/projects/FOO/repos/ken-homedir/browse
I guess you would need to configure this similar to what is done with Gitlab.
from git-open.
Is this still an issue?
from git-open.
^ yes
there are assumptions being made, such as repos always having scm
in the url to distinguish them as stash, which is not valid
adding a check for port 7990 and 7999 (stash specific defaults for http and ssh) would be a good idea, but still does not catch proxied cases. It isn't possible to catch everything since stash URLs are under each individual organization's control
from git-open.
Related Issues (20)
- git open merge request HOT 1
- Exit code 127 and some advice
- npm seems to install an older version of git-open
- Customization option of url needed.
- gitlab: fails to open issues whose title contains numbers
- How to open url not with https ?
- Error: unknown style `zdiff3` given for `merge.conflictstyle`
- git-open not open SSH repository url HOT 4
- Changelog for 3.0.0 HOT 1
- Installation error: git: 'git-open' is not a git command. See 'git --help'. HOT 1
- How does it work? HOT 2
- [ Bitbucket ] Default open url for bitbucket repositories
- [Feature Request] Open a specific file HOT 1
- git-open not open issue page HOT 3
- Pulls URL adding `tree/BRANCH` HOT 2
- Sending Message feature is not working in Whatstapp HOT 2
- powershell.exe -NoProfile Start in WSL2
- Feature: Add a possibility to specify a port
- Windows unclear
- increasing issue points.
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 git-open.