Permalink
Browse files

Merge pull request #5 from sandeepshetty/master

Bugfix to follow redirects
  • Loading branch information...
2 parents c767a53 + 90c2b56 commit cc4e3167d61941d053f9857a8d79c5556153e576 @crodas committed May 13, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 phpgit/githttpclone.php
View
@@ -23,7 +23,7 @@
* Initialize the http module.
*
* @return nothing
- */
+ */
protected function initMod()
{
$http = & $this->_http;
@@ -32,6 +32,7 @@ protected function initMod()
$http->timeout = 30;
$http->user_agent = "PHPGit/1.0 (http://cesar.la/projects/phpgit)";
$http->prefer_curl = 0;
+ $http->follow_redirect = 1;
}
/**

0 comments on commit cc4e316

Please sign in to comment.