Comments (3)
good to hear, thank you!
from ghr.
Hi @martinus, we have just published v0.3.2, a new version of ghr, including support of additional patterns for cloning.
Since ghr is oriented to manage repositories in host -> owner -> repo structure, ghr needs to identify which part in URL specifies host, owner, or repo. Thus we need to configure a pattern in regex in ~/.ghr/ghr.toml
.
This is the example configuration to clone torvalds/linux:
[[patterns]]
regex = "^(?P<scheme>https)://(?P<host>git\\.kernel\\.org)/pub/scm/linux/kernel/git/(?P<owner>.+)/(?P<repo>.+)\\.git"
If there are any question(s), feel free to write here or open a new issue.
Thank you for using ghr!
from ghr.
@martinus
Thank you for trying ghr and reporting this.
Of course supporting non-GitHub repos is in the objective, but ghr expects /[org]/[repo].git style paths.
Supporting other style paths is tracked in #45.
I am going to priotrise this issue.
from ghr.
Related Issues (20)
- Integrate Kimari DSL
- `--fork` does not wait until the fork is actually completed HOT 1
- Clone fork in the original owner's directory (via option?) HOT 1
- Deleting multiple repos at once
- Delete repos recursively in a org or a host
- Search repositories in GitHub using ? token on clone
- Bulk apply profiles onto existing repos
- [feature request] Register unmanaged, existing git repository to ghr
- [feature request] Allow muitple default owners to be specified HOT 1
- subcommand 'list' does not appear in bash completion
- Use clap_complete to auto generate shell completion
- Support flags and options for cloning HOT 2
- Open repository in the associated application by default
- Bug report: list command does not work HOT 2
- Support additional patterns other than org/repo
- Support cloning multiple repositories at once
- ghr path does not work with patterns
- Support shell completion on ghr cd / path HOT 1
- Completion for fish shell is not placed under the right place, so not working
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 ghr.