Errors while cloning remote repo using git_http_client.php
I'll try to look into this when I get some time.
$ php -f git_http_client.php Getting HEAD Getting info/refs Getting refs/heads/master Getting packed-refs Getting branch [c767a534b280ade1e300a9aa9ae08218dd577966] refs/heads/master Getting objects/c7/67a534b280ade1e300a9aa9ae08218dd577966 Getting objects/info/packs PHP Notice: Undefined index: P in /path/to/php-git/phpgit/gitclone.php on line 204 PHP Stack trace: PHP 1. {main}() /path/to/php-git/examples/git_http_client.php:0 PHP 2. GitClone->doClone() /path/to/php-git/examples/git_http_client.php:26 PHP 3. GitClone->fetchCommit() /path/to/php-git/phpgit/gitclone.php:150 PHP 4. GitClone->fetchObject() /path/to/php-git/phpgit/gitclone.php:226 Getting objects/pack/ PHP Warning: file_put_contents(php-git/.git/config): failed to open stream: No such file or directory in /path/to/php-git/phpgit/gitclone.php on line 176 PHP Stack trace: PHP 1. {main}() /path/to/php-git/examples/git_http_client.php:0 PHP 2. GitClone->doClone() /path/to/php-git/examples/git_http_client.php:26 PHP 3. file_put_contents() /path/to/php-git/phpgit/gitclone.php:176
I'll take a look into this in few hours.
On 10 May 2011 09:29, sandeepshetty [email protected] wrote:
I'll try to look into this when I get some time.
$ php -f git_http_client.php Getting HEAD Getting info/refs Getting refs/heads/master Getting packed-refs Getting branch [c767a534b280ade1e300a9aa9ae08218dd577966] refs/heads/master Getting objects/c7/67a534b280ade1e300a9aa9ae08218dd577966 Getting objects/info/packs PHP Notice: Undefined index: P in /path/to/php-git/phpgit/gitclone.php on line 204 PHP Stack trace: PHP 1. {main}() /path/to/php-git/examples/git_http_client.php:0 PHP 2. GitClone->doClone() /path/to/php-git/examples/git_http_client.php:26 PHP 3. GitClone->fetchCommit() /path/to/php-git/phpgit/gitclone.php:150 PHP 4. GitClone->fetchObject() /path/to/php-git/phpgit/gitclone.php:226 Getting objects/pack/ PHP Warning: file_put_contents(php-git/.git/config): failed to open stream: No such file or directory in /path/to/php-git/phpgit/gitclone.php on line 176 PHP Stack trace: PHP 1. {main}() /path/to/php-git/examples/git_http_client.php:0 PHP 2. GitClone->doClone() /path/to/php-git/examples/git_http_client.php:26 PHP 3. file_put_contents() /path/to/php-git/phpgit/gitclone.php:176
Reply to this email directly or view it on GitHub: https://github.com/crodas/php-git/issues/6
Cesar D. Rodas [email protected] http://crodas.org/ -- http://cesar.la/ Phone: +595-961-974165
Same issue HP Notice: Undefined index: P in /path/to/php-git/phpgit/gitclone.php on line 204
It seems that the "objects/info/packs" file is empty.