Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Submodule in subdirectory deeper than one level is disabled for deletion

Alexander Fokin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 30, 2017

Hello,
We can create a submodule in subdirectory deeper than one level, for example Application/Driver/. But I can not delete this submodule after that, Delete action for submodule is disable in menu on right button click mouse. If submodule is created in a directory on the same level as .git file all will be Ok, I mean the deletion is enable.

SourceTree version 2.1.2.52017-06-30 15_05_23-SourceTree.png

2 answers

0 votes
Alexander Fokin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 11, 2017

Hello,

to overcome that trouble I created a scrypt, it works good for me. 

SUBMOD="keyb_services"
SUBMODPATH="Drivers/keyb_services"
git config -f .gitmodules --remove-section submodule.$SUBMODPATH
git add .gitmodules
git config -f .git/config --remove-section submodule.$SUBMODPATH
git rm --cached $SUBMODPATH
rm -rf .git/modules/$SUBMOD
git commit -m $SUBMOD
rm -rf $SUBMODPATH

0 votes
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 6, 2017

Hi Alexander, this sounds like a bug and I've reported it at SRCTREEWIN-7571. You can watch that page for further updates, you can also add a comment if you have any question.

Cheers!

Ana

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events