Uploaded image for project: 'Sourcetree for Windows'
  1. Sourcetree for Windows
  2. SRCTREEWIN-4044

Deleting a single Submodule in SourceTree results in the deletion of all submodules in this repo

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • 1.7
    • Git
    • Severity 1 - Critical

      Summary

      If a repo in SourceTree has multiple submodules, deleting one of them will result in the deletion of all submodules.

      Environment

      SourceTree for Windows, version 1.7

      Steps to Reproduce

      1. Open the tab of a git repo in SourceTree
      2. Add two submodules
      3. Right click on one of the submodules, named e.g. X, and select Delete X

      Expected Results

      Submodule X is deleted from the repo.

      Actual Results

      Both submodules in this repository are removed.

      Workaround

      No workaround available.

            [SRCTREEWIN-4044] Deleting a single Submodule in SourceTree results in the deletion of all submodules in this repo

            Still present in version 1.8.2.11.

            Manually removed using:
            git submodule deinit asubmodule
            git rm asubmodule
            rm -rf .git/modules/asubmodule

            Rob Overell added a comment - Still present in version 1.8.2.11. Manually removed using: git submodule deinit asubmodule git rm asubmodule rm -rf .git/modules/asubmodule

              Unassigned Unassigned
              vchoo Vivian C
              Affected customers:
              3 This affects my team
              Watchers:
              5 Start watching this issue

                Created:
                Updated: