Skip to content

Errors while cloning remote repo using git_http_client.php #6

@sandeepshetty

Description

@sandeepshetty

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 [c767a53] 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions