Opened 4 years ago

Last modified 10 months ago

#4503 closed defect fails for git submodule — at Initial Version

Reported by: asmirnov Assignee: asmirnov
Priority: P4 Milestone:
Module: Automation Keywords:
Cc: fhd, sebastian, kvas Blocked By:
Blocking: Platform: Unknown / Cross platform
Ready: yes Confidential: no
Tester: Unknown Verified working: no
Review URL(s):



ensure_dependencies script is used to extract required dependencies from git/mercurial repositories. However it fails for git submodules. Git submodules is widely used to extract dependencies, f.e. Since we're working on integrating libadblockplus-android into 3rd-party projects it would be good to fix it.

How to reproduce

  1. git submodule add
  2. cd ./libadblockplus-android
  3. ./
  4. make sure error is thrown:
    MBA-Anton:libadblockplus-android asmirnov$ ./ 
    INFO: Cloning repository into ./libadblockplus-android/jni/libadblockplus-binaries
    Traceback (most recent call last):
      File "./", line 299, in <module>
      File "./", line 245, in resolve_deps
        ensure_repo(repodir, target, config.get("_root", {}), revisions["_source"])
      File "./", line 200, in ensure_repo
        repo.ignore(target, parentrepo)
      File "./", line 105, in ignore
        _ensure_line_exists(exclude_file, module)
      File "./", line 275, in _ensure_line_exists
        with open(path, 'a+') as f:
    IOError: [Errno 20] Not a directory: './.git/info/exclude'


Observed behaviour

it's extracted without error

Expected behaviour

extraction error

Change History (0)

Note: See TracTickets for help on using tickets.