Move to git-archive for zip support
[gitphp.git] / include / gitutil.git_exec.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
/*
 *  gitutil.git_exec.php
 *  gitphp: A PHP git repository browser
 *  Component: Git utility - execute git command depending on platform
 *
 *  Copyright (C) 2008 Christopher Han <xiphux@gmail.com>
 */
 
 if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')
        require_once('gitutil.git_exec_win.php');
 else
        require_once('gitutil.git_exec_nix.php');
 
function git_exec($project, $command)
{
        if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')
                return git_exec_win($project, $command);
        else
                return git_exec_nix($project, $command);
}
 
?>
 
comments