Giter Club home page Giter Club logo

Comments (2)

dhoehna avatar dhoehna commented on July 4, 2024

My idea for conflict resolution is

  1. Separate by provider
  2. Separate by account name
  3. Separate by repo name.

Or, another idea is to not append to clone path and change the repo directory name.

But that could make the name of the directory too long.

Examples.

I have a Github and ADO provider and I want to download a repo called MyRepo from both. Clone Path is C:\users\dhoehna\Desktop\MyRepos. ADO provider happens to start cloning first. Github provider runs into a conflict.

Github will instead download to [Clone Path]\[ProviderName]\[RepoName] in this example C:\users\dhoehna\Desktop\MyRepos\MyRepo

Then, after path resolution if a repository exists then -N where N is the number of folders is appended to the folder name.

Lets say the repo existed. Then, the path would be C:\users\dahoehna\Desktop\MyRepos\MyRepos-1

Discussion is encouraged.

Basically, how do we avoid naming conflicts so a repo is cloned no matter what?

from devhome.

asklar avatar asklar commented on July 4, 2024

@dhoehna There is no need to prevent collision a priori. Collisions can happen for many reasons, many of them not in dev home's control. If we find a collision (i.e. the cloning fails) for whatever reason, we should just show an error. We should not insert artificial separation of repos based on provider or account, please make it so repos get cloned to the expected location of FolderPathIEnteredInTheUI\NameOfTheRepo.

from devhome.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.