Indefero

Indefero Commit Details


Date:2009-01-19 13:54:49 (15 years 11 months ago)
Author:Loic d'Anterroches
Branch:dev, develop, feature-issue_links, feature.better-home, feature.content-md5, feature.diff-whitespace, feature.download-md5, feature.issue-links, feature.issue-of-others, feature.issue-summary, feature.search-filter, feature.webrepos, feature.wiki-default-page, master, release-1.1, release-1.2, release-1.3
Commit:e21b4d87b9fa4eee35b7eff640a86d1be3d0577d
Parents: 941a4951442a628a47dcefb4d0190699bacf71f7
Message:Removed the need to set a configuration variable.

Changes:

File differences

scripts/gitserve.py
11
2
3
4
2
3
54
65
76
......
2524
2625
2726
27
2828
29
30
2931
3032
3133
#!/usr/bin/env python
GITSERVEPHP='/home/loa/Projects/indefero/scripts/gitserve.php'
# -*- coding: utf-8 -*-
#
# ***** BEGIN LICENSE BLOCK *****
# This file is part of InDefero, an open source project management application.
# Copyright (C) 2008 Céondo Ltd and contributors.
import os
import sys
import commands
import traceback
n = len("/gitserve.py")
GITSERVEPHP = '%s/gitserve.php' % traceback.extract_stack(limit=1)[0][0][0:-n]
status, output = commands.getstatusoutput('php %s %s' % (GITSERVEPHP, sys.argv[1]))
if status == 0:
    os.execvp('git', ['git', 'shell', '-c', output.strip()])

Archive Download the corresponding diff file

Page rendered in 0.10312s using 13 queries.