Giter Site home page Giter Site logo

php-git's People

Contributors

crodas avatar alexanderwillner avatar sandeepshetty avatar

Stargazers

Ernest Allen Buffington avatar Taha Amin Ghafuri [T@G] avatar  avatar Stephen J. Carnam avatar BohwaZ avatar Arne Govaerts avatar JinYi avatar Tianle Xu avatar Karim Mohamed avatar 野生程序员 avatar dtarker avatar jefurry avatar  avatar 陈亦 avatar Apex avatar Starck Lin avatar Angus H. avatar Kallef Alexandre avatar Johannes Wachter avatar Jimmy Berry avatar Sugeng Tigefa avatar Max Milaney avatar Mark Holtz avatar Thao le avatar Hermit avatar Alexey Lukyanenko avatar  avatar Fabian Mastenbroek avatar Yaroslav avatar Alex Zavacki avatar Kingfo avatar  avatar TaMeR avatar Thomas Adam avatar Hari K T avatar Ladislav Prskavec avatar Jacob Moena avatar Domenico Monaco avatar Oleh Burkhay avatar Ronny-André Bendiksen avatar Charlie Madison avatar Jose Diaz-Gonzalez avatar Jordi Collell avatar David Pennington avatar Sascha Ohms avatar  avatar  avatar Konstantin Kudryashov avatar Juan Basso avatar Ron Bieber avatar  avatar Yannick Gauthier avatar Jérémy Chatard avatar

Watchers

 avatar James Cloos avatar  avatar Ernest Allen Buffington avatar  avatar

php-git's Issues

wgetFile does not handle 301 redirects on RepoURL

The git_http_client.php example uses a http RepoURL (http://github.com/crodas/php-git.git) that returns a 301 response to redirect to the https URL which is not handled by wgetFile (GitHub redirects http requests to https).

Error:
Alright!, you found a bug, please report it Page not found http://github.com/crodas/php-git.git/HEAD

HTTP Request and Response:
GET /crodas/php-git.git/HEAD HTTP/1.1
Host: github.com

HTTP/1.1 301 Moved Permanently
Server: nginx/0.7.67
Date: Mon, 09 May 2011 21:19:07 GMT
Content-Type: text/html
Content-Length: 185
Connection: keep-alive
Location: https://github.com/crodas/php-git.git/HEAD

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.