hanchentech / git-repo

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

init: --reference failed with relative path. #111

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Affected Version: v1.7.3.1
Environment: linux (Ubuntu 10.10)

What steps will reproduce the problem?
1. mkdir my_aosp && cd my_aosp
2. repo init -u url.to.manifest --reference ../aosp
3. repo sync

What is the expected output? What do you see instead?

  Want use relative path "../aosp" as reference
  but, errors appered while syncing.

Please provide any additional information below.

  Seems "--reference" should given only with absolute path.
  I think ensure it with os.path.realpath() in subcmds/init.py 
  will solve the problem.

  Patch attached.

Original issue reported on code.google.com by ff4...@gmail.com on 31 May 2012 at 7:36

Attachments:

GoogleCodeExporter commented 9 years ago
Can you add a log of the errors?

Original comment by david.pu...@sonymobile.com on 19 Feb 2013 at 5:17