Bug 12745 - Can't clone pam_wrapper over HTTPS
Summary: Can't clone pam_wrapper over HTTPS
Status: NEW
Alias: None
Product: cwrap
Classification: Unclassified
Component: library (show other bugs)
Version: unspecified
Hardware: All All
: P5 normal
Target Milestone: ---
Assignee: Andreas Schneider
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-13 21:00 UTC by jwilk
Modified: 2019-02-28 11:55 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jwilk 2017-04-13 21:00:37 UTC
<https://wiki.samba.org/index.php/Using_Git_for_Samba_Development#Basic_Samba_Git>  suggests that both git://git.samba.org and https://git.samba.org should work equally well. So I tried to clone pam_wrapper over HTTPS, but it didn't work:

$ git clone https://git.samba.org/pam_wrapper.git
Cloning into 'pam_wrapper'...
fatal: repository 'https://git.samba.org/pam_wrapper.git/' not found
Comment 1 Andreas Schneider 2017-04-15 08:53:14 UTC
Björn, could you please look into this? Thanks!
Comment 2 Björn Jacke 2017-04-15 18:42:06 UTC
I'm quoting metze from some weeks ago, who replied to a similar request:

In order to support https:// the repository needs to have a

post-update hook executableand it needs to call git update-server-info

See our main repo where this works.

  root@sn:/data/git/samba.git/hooks# cat post-update
  #!/bin/sh
  #
  # An example hook script to prepare a packed repository for use over
  # dumb transports.
  #
  # To enable this hook, make this file executable by "chmod +x
post-update".

  exec git update-server-info

It's up to the repository owner to enable that.
Comment 3 Andreas Schneider 2019-02-28 11:55:25 UTC
Björn, there is no need for a hook, see https://git.seveas.net/apache-gitweb-cgit-smart-http.html