Skip to content

Duplicate entries with the same repo nickname ends up cloning only one of them, without notifying so #210

@130s

Description

@130s

Problem

When there are multiple entries with the same nickname (?) I see only the last entry is cloned, which might be fine. But I do see it a problem that the tool doesn't let the user know there was a duplicate entry.

I just had an issue where a repo defined earlier than the last duplicated entry didn't get cloned, which I didn't notice for awhile.

Demo

foo.repos.

- git: {local-name: dirk-thomas/vcstool, uri: 'https://github.com/facebook/robolectric'}
- git: {local-name: dirk-thomas/vcstool, uri: 'https://github.com/dirk-thomas/vcstool'}

I do not see any mention about robolectric in the result below.

$ mkdir src && vcs import src < ./foo.repos 
=== src/dirk-thomas/vcstool (git) ===
Cloning into '.'...

$ cd src/dirk-thomas/vcstool/ && git remote -vv
origin  git@github.com:dirk-thomas/vcstool (fetch)
origin  git@github.com:dirk-thomas/vcstool (push)

$ apt-cache policy python3-vcstool
python3-vcstool:
  Installed: 0.2.15-1

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions