Uploaded image for project: 'Sourcetree For Mac'
  1. Sourcetree For Mac
  2. SRCTREE-1291

Add validation on source when creating a subrepo/submodule

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • None
    • None
    • None
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      At least one user has a slight confusion on how subrepositories worked and added one by drag/dropping their local subrepo checkout into the parent, then when adding the subrepo used that same local path for both the source and the relative destination. In their case this caused locking problems in hg, but more generally if they'd tried to share that parent repo with others, the subrepos would not have been available to clone. The source path should almost always be a remote clone (although we allow browsing the file system for people that use it for unusual cases, like local-only setups or file share remotes).

      We should add some validation here so that the source path is not allowed to be a subfolder of the parent.

      Original issue: https://answers.atlassian.com/questions/109288/always-waiting-on-lock-on-subrepository

              Unassigned Unassigned
              sstreeting Steve Streeting (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: