GithubHelp home page GithubHelp logo

Comments (2)

supyrow avatar supyrow commented on July 16, 2024

this is what i needed to do to get my domain to work. NOTE: i do not use the name gitlist, on my domain, this way i can use https://git.supyrow.com and not need to use git.supyrow.com/gitlist

.htaccess

<IfModule mod_rewrite.c>
    Options -MultiViews +FollowSymLinks
    RewriteEngine On
    #RewriteBase /
		RewriteCond %{REQUEST_FILENAME} !-f
		RewriteCond $0#%{REQUEST_URI} ([^#]*)#(.*)\1$
		RewriteRule ^.*$ %2index.php [QSA,L]
    SetEnv default_repository_dir ../../repositories
</ifmodule>

apache2 config>>

gitlist.conf

Alias /gitlist /var/www/git.supyrow.com/public
Alias /assets /var/www/git.supyrow.com/public/assets
<Directory /var/www/git.supyrow.com/public>
  Options FollowSymLinks
  AllowOverride All
</Directory>
	LogLevel info ssl:warn

	ErrorLog ${APACHE_LOG_DIR}/error_gitlist.log
	CustomLog ${APACHE_LOG_DIR}/access_gitlist.log combined

setting default_repository_dir in config.yml seems to do nothing. so setting direct in .htaccess did the trick. this is relative from public/.

I use hosting24.com's webhosting service and another thing that needed to be done was remove due to an odd version of git running on the server.

--ignore-empty-lines from a line in src/SCM/System/Git/CommandLine.php

$output = $this->run(['show', '-w', '--ignore-empty-lines', '-b', '--cc', self::DEFAULT_COMMIT_FORMAT,

to

$output = $this->run(['show', '-w', '-b', '--cc', self::DEFAULT_COMMIT_FORMAT,

================================================================

disregard, the part about --ignore-empty-lines doesnt apply to you.

however, what worked for me. was to set up a folder just for , lets say

../../repositories

it needed to be relative and wouldn't work for me using a direct line to

/var/lib/git/repositories

have symlinks going to that directory. and it will find whatever is in there. (this is what I found to work.

also. PERMISSIONS. needs to be set for the user that runs the webserver. this line helped with that.

fatal: detected dubious ownership in repository at

sudo git config --system --add safe.directory /home/git/repositories/me/myrepo.git

i am using the zip 2.0.0 of gitlist

from gitlist.

eriksejr avatar eriksejr commented on July 16, 2024

I think most of these issues may originate with how the cache is being handled here. The .php file which was importing the settings appears to be dynamically created in the cache with the values from config.yml the first time gitlist is run. If config.yml is changed after that point without the cache being cleared (rm -rf /var/cache) then any changes to this file do nothing at all and the user has no idea why.

from gitlist.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.