ornicar/php-git-repo — Issue #6: Git Error 128
Author: philipzaengle
Created: 2012-01-16 21:21:42+00:00
State: open

I'm hitting a wall when trying to checkout a branch via this library, I get the following error:

'''
Fatal error: Uncaught exception 'GitRuntimeException' with message 'Command cd '/Sites/demo.com' && /usr/bin/git checkout development failed with code 128: ' in /Users/username/site/addons/libraries/phpgit/Phpgit_Command.php:58
Stack trace:
#0 /Sites/demo.com/addon/libraries/phpgit/Phpgit_Repository.php(198): PHPGit_Command->run()
#1 /Sites/demo.com/addon/index.php(27): PHPGit_Repository->git('git checkout de...')
#2 {main}
thrown in /Sites/demo.com/addon/libraries/phpgit/Phpgit_Command.php on line 58
'''

I am able to get a list of branches, tags without issue.

Work:
$repo->git("help");
$repo->git("branch");
$repo->git("status");

Fail:
$repo->git("checkout development");

I able to run the checkout command without issue via the command line locally.

anyone else seeing this issue or have experience fixing it?