Comments (6)
It is actually the intended behaviour and there is no problem.
Which is not the indented behavior, as I'm expecting it to pull via SSH. Doing this way apparently fixes the problem:
I noticed Git tries to authenticate even for public repositories when using SSH, so I chose to do the transformation to HTTPS on the fly and use it instead.
May I know why you need SSH for public repository ?
Though I will close this issue because this behaviour does not yield different result for the user and it is intended.
from caddy-git.
I'm actually using a private repository, but I don't need to necessarily specify the SSH key if I have it on ~/.ssh/id_rsa
, git seems to assume that by default. That's why I didn't want to specify a key and use the simple one-liner directive.
When people go to clone a GitHub repository, GitHub automatically gives them the HTTPS link by default:
For that reason I think the transformation to HTTPS is unneeded. And in my case, it results in unintended behavior :P
from caddy-git.
Bear in mind that it is implemented to be as standalone as possible. Imagine running it in a container or not having ssh keys configured. That is why you need the key specified.
I choose not to believe that additional curly braces and an extra line is that much of deal.
from caddy-git.
Fair enough 👍
I didn't want to specify the key due to another issue, it couldn't find my key at all:
Warning: Identity file .ssh/id_rsa not accessible: No such file or directory.
But that's another issue that I will hopefully fix. Removing the key parameter seemed like a quick option to remove that warning, but I noticed the middleware put "https://" before my Git SSH url, that's why I opened this issue.
from caddy-git.
Specify absolute path for key.
from caddy-git.
That solved it, thanks!
from caddy-git.
Related Issues (20)
- 400 Bad Request - Bitbucket
- Does this package assume git repo URLs with always have ".git" in them? HOT 5
- Prevent pulling / running script on start
- Using a pure Go git HOT 3
- Caddy's import path has changed HOT 2
- Hook from gitlab.com fails with http 400 error
- parse ssh invalid port ":sjatsh" after host HOT 16
- submodules not getting updated
- Problems with clone on startup with git host in same Caddyfile HOT 2
- Caddy 2 support HOT 3
- Travis webhook verification HOT 1
- Cloning private repo fails HOT 2
- Support for multiple remote urls for a single repo (ssh and https URLs) HOT 2
- Webhook - Bad Request 400 HOT 1
- Large number of zombie processes in docker HOT 3
- RFE: whitelisted blocks of IP addresses for webhooks should be configurable HOT 3
- Error during parsing: Unknown directive 'repo' HOT 2
- problem at git HOT 6
- Pulling `{latest}` via WebHook HOT 4
- caddy-git error when cloning repos with custom port (SSH) 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 caddy-git.