PBMaster

PBMaster:Repository

From PBMasterWiki

Contents

[edit] Installation

All projects files are available through the GIT repository (a source code management available for *BSD, Linux and also Windows's MingGW).

  • You don't have to install Git if you only want to browse the files. Follow this link in that case http://git.pbmaster.org
  • You have to install Git in order to checkout the project. Please make sure you have git-http-* commands installed.

[edit] Setup client

  • Create a file named ~/.netrc with the content. You can use multipe machines/user/password with a single configuration file. Just add more configuration for each machine to the file.
machine git.pbmaster.org
login <username>
password <password>

and set permissions:

$ chmod 600 ~/.netrc
  • To check whether all is OK, do:
$ curl --netrc --location -v http://<username>@git.pbmaster.org/pbmaster/HEAD

this should give something like ref: refs/heads/master, which is the content of the file HEAD on the server. If you got an error 401 Authorization Required, your login data is probably not setup correctly.

[edit] Initial checkout

  • Checkout the project
$ git clone http://<username>@git.pbmaster.org/pbmaster
  • Add your user data to your git/config
[user]
       name = "Your Name"
       email = "your.email@pbmaster.org"
[color]
       diff = auto
       status = auto
       branch = auto

[edit] Troubleshooting

  • If git hung during the push command, check if the following line in your git/config terminates with a slash character
url = http://<username>@git.pbmaster.org/pbmaster/

It is important to put the last /; Without it, the server will send a redirect which git-http-push does not (yet) understand, and git-http-push will repeat the request infinitely.

[edit] References