martinjina / git-repo

Automatically exported from code.google.com/p/git-repo
Apache License 2.0
0 stars 0 forks source link

relpath in infinite loop when commonprefix is '/' #109

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
To reproduce:

 1. In your $HOME, do 
    git clone https://code.google.com/p/git-repo/
 2. In eg. /tmp (it's important there's no common path between $HOME and /tmp)
  $HOME/tmp/git-repo/repo init -u git://android.git.linaro.org/platform/manifest.git -b linaro_android_4.0.3 -m landing-panda.xml 

This will drive your CPU up to 100% in projects.relpath() method in an infinite 
loop.

Fix is attached.

Original issue reported on code.google.com by danilo.s...@linaro.org on 2 Mar 2012 at 3:25

Attachments: