Skip to content

Improve Smart HTTP section - #432

Merged
ben merged 3 commits into
progit:masterfrom
vitalyq:smart-http
Oct 15, 2015
Merged

Improve Smart HTTP section#432
ben merged 3 commits into
progit:masterfrom
vitalyq:smart-http

Conversation

@vitalyq

@vitalyq vitalyq commented Oct 14, 2015

Copy link
Copy Markdown
Contributor

Issues arise during the very basic setup of Smart HTTP using the tutorial.

  1. User files generated with htdigest and htpasswd are not compatible.
    Thus, if AuthType Basic is used, htdigest must be changed to htpasswd.
    The fix also resolves book errata #122.
  2. Apache process doesn’t have write permissions for the /opt/git/ subdirectories.
    To address this, I suggest restoring the paragraph from this section:
    https://git-scm.com/book/en/v1/Git-on-the-Server-Public-Access.
    Namely, $ chgrp -R www-data /opt/git.
  3. Authentication fails during push.
    The initial ref advertisement request will fail without even giving an opportunity for authentication.
    This is described in the git-http-backend man page examples: https://www.kernel.org/pub/software/scm/git/docs/git-http-backend.html
    I have updated and simplified the authentication paragraph from the example to fit the context.
    Also, the paragraph is merged with the git-core access authorization paragraph for brevity.

User files generated with htdigest and htpasswd are not compatible.
Thus, htpasswd must be used with AuthType Basic.

Signed-off-by: Vitaly Kuznetsov <[email protected]>
Apache process doesn’t have write permissions for the /opt/git/
subdirectories. Restore the paragraph from this section:
https://git-scm.com/book/en/v1/Git-on-the-Server-Public-Access.

Signed-off-by: Vitaly Kuznetsov <[email protected]>
There is an issue with the authentication section. The initial ref
advertisement request will fail without even giving an opportunity for
authentication. This is described in the git-http-backend man page
examples.

Update authentication section according to the example to fix the problem.
Merge the section with the git-core access authorization section for
brevity.

Signed-off-by: Vitaly Kuznetsov <[email protected]>
@ben

ben commented Oct 15, 2015

Copy link
Copy Markdown
Member

I like it, thanks!

ben added a commit that referenced this pull request Oct 15, 2015
@ben
ben merged commit 17c6a71 into progit:master Oct 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

book errata

2 participants