Skip to content

Commit

Permalink
updating readme
Browse files Browse the repository at this point in the history
moving directories to temp folder
updating config to point to git-php folder as the $repo_directory
  • Loading branch information
josegonzalez committed Sep 25, 2009
1 parent 55e99a9 commit 6f19e59
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 12 deletions.
Empty file added .temp/bundles/empty
Empty file.
Empty file added .temp/cache/empty
Empty file.
Empty file added .temp/secrets/empty
Empty file.
18 changes: 10 additions & 8 deletions README.markdown
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
# Summary
This is only a rough unsorted collection of informations. The original git-php had no README at all :-(
# Git-PHP

### Requirements
## Summary
Git-PHP is a port of gitweb to PHP. It includes various functionality, such as submitting diffs, repository browsing, simple search, and diff highlighting. It is based upon Zack Bartel and Peeter Vois's original work, with updates to handle the latest git installs (1.6.4.4 as September 25, 2009), as well an update to the stylesheet to make it feel more like github.com. It definitely still needs tender love and care to make it more MVC like, but it'll get there. Please read the commit messages for more information on changes implemented.

## Requirements
* git
* enscript


### Installation
## Installation
1. edit config.php
2. In a terminal window, change directories to your $repo_directory and execute the following:
* ```mkdir .cache .bundles .secrets ; chmod -R 777 .cache .bundles .secrets```
* ```mkdir .temp/cache .temp/bundles .temp/secrets ; chmod -R 777 .cache .bundles .secrets```

### Supposed directory structure:
$repo_directory-\
|
+-$cache_name
+-./temp/$cache_name
|
+-$secret_name
+-./temp/$secret_name
|
+-$bundle_name
+-./temp/$bundle_name
|
+-project1 / .git
|
Expand Down
8 changes: 4 additions & 4 deletions config.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
$repo_index = "index.aux";

/* The directory where repo directories resist */
$repo_directory = "/var/git/repositories/";
$repo_directory = dirname(__FILE__) . "/";

/* The suffix, that can be used for complementing the repo directory,
* useful when you are using nonbare repositories, then:
Expand All @@ -34,9 +34,9 @@
/* The date format to show the dates of commits */
$git_date_format = 'd.m.Y (H:i)';

$cache_name = ".cache/";
$secret_name = ".secrets/";
$bundle_name = ".bundles/";
$cache_name = "./temp/cache/";
$secret_name = "./temp/secrets/";
$bundle_name = "./temp/bundles/";
$cache_directory = "{$repo_directory}{$cache_name}";

$repo_http_relpath = "/git-php/";
Expand Down

0 comments on commit 6f19e59

Please sign in to comment.