Failed to clone [...] via git, https and http protocols, aborting

1,428 views
Skip to first unread message

Dominik Peuscher

unread,
Mar 27, 2013, 10:57:00 AM3/27/13
to compose...@googlegroups.com
Hi,

I have a problem with the resolving of my dependencies. My composer.json looks like this:

{
  [...]
  "require": { 
    "php": ">=5.3.3", 
    [...] 
    "predis/predis": "dev-master", 
    [...] 
  }
}

This could be resolved until today where it throws an error:

composer.phar update
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Updating predis/predis dev-master (v0.8.3 => 68d972a)
    Checking out 68d972a1b15919afe45bbb1f55426f176a4dcf6b

                                                                               
  [RuntimeException]                                                           
  Failed to clone http://github.com/nrk/predis.git via git, https and http pr  
  otocols, aborting.                                                           
                                                                               
  - git://github.com/nrk/predis.git                                            
    fatal: No such remote 'composer'                                           
                                                                               
  - https://github.com/nrk/predis.git                                          
    fatal: No such remote 'composer'                                           
                                                                               
  - http://github.com/nrk/predis.git                                           
    fatal: No such remote 'composer'                                           
                                                                               
                                                                               

update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [-v|--verbose] [-o|--optimize-autoloader] [packages1] ... [packagesN]


Process finished with exit code 1
Can someone help me with this?

Greets Dominik

Jordi Boggiano

unread,
Mar 27, 2013, 10:58:51 AM3/27/13
to compose...@googlegroups.com
> - http://github.com/nrk/predis.git
>
> fatal: No such remote 'composer'
>

This can happen with very old composer setups (probably around a year
ago..). Removing the affected vendor like "rm -rf vendor/predis/predis"
then running update again should fix it.

Cheers

--
Jordi Boggiano
@seldaek - http://nelm.io/jordi

Dominik Peuscher

unread,
Apr 5, 2013, 8:26:56 AM4/5/13
to compose...@googlegroups.com
Worked perfect :), thanks
Reply all
Reply to author
Forward
0 new messages