Opened 14 months ago
Closed 14 months ago
#18658 closed bug (fixed)
curl examples on 'Get the Haiku Source Code / Pushing Patches ...' is incorrect
Reported by: | bcbarnes | Owned by: | haiku-web |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | Website | Version: | R1/beta4 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
Following the instructions in the web page, I get this error message from curl:
Warning: Failed to open the file haiku/.git/hooks/: Is a directory curl: (23) Failure writing output to destination
Specifically, I think the curl portion of the command is incorrect.
curl -Lo “haiku/.git/hooks/” https://git.haiku-os.org/tools/hooks/commit-msg
The quoted path should have “commit.msg” appended to it, as in “haiku/.git/hooks/commit-msg”.
Change History (5)
follow-up: 2 comment:1 by , 14 months ago
comment:2 by , 14 months ago
Replying to humdinger:
I get the same error with and without the suggested change. FWIW, "wget --spider" says:
❯ wget --spider https://git.haiku-os.org/tools/hooks/commit-msg
I noticed this problem a few weeks ago when setting up git. I used https://review.haiku-os.org/tools/hooks/commit-msg to get the proper file.
comment:3 by , 14 months ago
Something may be going on with the server - I just ran the example and it was fine using curl, but does give the error you see when using wget. Not sure what that is about ...
Perhaps I could have been clearer in my suggested fix. There are 3 examples of 'curl' execution on that web page, each different. The only thing I'm suggesting is that in all 3 examples, a valid destination file name, not a directory, needs to be specified. In all 3 cases, that file name should be "commit-msg". Nothing else is to change.
comment:4 by , 14 months ago
Component: | - General → Website |
---|---|
Owner: | changed from | to
comment:5 by , 14 months ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
I get the same error with and without the suggested change. FWIW, "wget --spider" says: