Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

git update-server-info needs to be run whenever something changes for…

… http to work, not just after git init.

Add update-server-info to the httpgit action.
  • Loading branch information...
commit 630f812586a9273e57f9b6ab5f7c97157fed56b8 1 parent ddd8039
@icefox authored
View
2  bin/githaven-sshhandler
@@ -38,7 +38,7 @@ cd repos
# Create the repo if it does not exists
if [ ! -d "${repopath}" ] ; then
mkdir -p "${repopath}"
- (cd "${repopath}"; git init --bare -q; git update-server-info)
+ (cd "${repopath}"; git init --bare -q)
fi
nice git shell -c "${SSH_ORIGINAL_COMMAND}"
View
2  web/app/controllers/repositories_controller.rb
@@ -37,6 +37,8 @@ def httpgit
@path = params[:path].join('/') if params[:path]
filename = @repository.location() + '/' + @path
if File.exists?(filename)
+ # This should be moved out to a hook
+ system("cd #{@repository.location()}; git update-server-info")
send_file filename
else
render :nothing => true, :status => :not_found
Please sign in to comment.
Something went wrong with that request. Please try again.