Skip to content

Commit

Permalink
Merge pull request #5 from sandeepshetty/master
Browse files Browse the repository at this point in the history
Bugfix to follow redirects
  • Loading branch information
crodas committed May 13, 2011
2 parents c767a53 + 90c2b56 commit cc4e316
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion phpgit/githttpclone.php
Expand Up @@ -23,7 +23,7 @@ final class GitHttpClone extends GitClone
* Initialize the http module.
*
* @return nothing
*/
*/
protected function initMod()
{
$http = & $this->_http;
Expand All @@ -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;
}

/**
Expand Down

0 comments on commit cc4e316

Please sign in to comment.