Re: gitconfig get out of sync with submodule entries on branch switch

2017-02-08 Thread Stefan Beller
On Mon, Feb 6, 2017 at 4:17 AM, Benjamin Schindler wrote: > > > On 06.02.2017 11:35, Stefan Beller wrote: >> >> Answering the original email, as I feel we're going down the wrong rabbit >> hole in the existing thread. >> >> On Mon, Jan 30, 2017 at 8:21 AM, Benjamin

Re: gitconfig get out of sync with submodule entries on branch switch

2017-02-06 Thread Benjamin Schindler
On 06.02.2017 11:35, Stefan Beller wrote: Answering the original email, as I feel we're going down the wrong rabbit hole in the existing thread. On Mon, Jan 30, 2017 at 8:21 AM, Benjamin Schindler wrote: Hi Consider the following usecase: I have the master branch

Re: gitconfig get out of sync with submodule entries on branch switch

2017-02-06 Thread Stefan Beller
Answering the original email, as I feel we're going down the wrong rabbit hole in the existing thread. On Mon, Jan 30, 2017 at 8:21 AM, Benjamin Schindler wrote: > Hi > > Consider the following usecase: I have the master branch where I have a > submodule A. I create a

Re: gitconfig get out of sync with submodule entries on branch switch

2017-01-31 Thread Stefan Beller
On Mon, Jan 30, 2017 at 11:46 PM, Benjamin Schindler wrote: > Hi Brandon > > I did try your suggestion, so basically: > > git checkout branch > git submodule init > git submodule update Eventually this becomes git submudule update --init git checkout

Re: gitconfig get out of sync with submodule entries on branch switch

2017-01-30 Thread Benjamin Schindler
Hi Brandon I did try your suggestion, so basically: git checkout branch git submodule init git submodule update Unfortunately, I still have two entries in my git config this way. It seems that git submodule update only considers submodules listed in .gitmodules. The background of my

Re: gitconfig get out of sync with submodule entries on branch switch

2017-01-30 Thread Brandon Williams
On 01/30, Benjamin Schindler wrote: > Hi > > Consider the following usecase: I have the master branch where I > have a submodule A. I create a branch where I rename the submodule > to be in the directory B. After doing all of this, everything looks > good. > Now, I switch back to master. The

gitconfig get out of sync with submodule entries on branch switch

2017-01-30 Thread Benjamin Schindler
Hi Consider the following usecase: I have the master branch where I have a submodule A. I create a branch where I rename the submodule to be in the directory B. After doing all of this, everything looks good. Now, I switch back to master. The first oddity is, that it fails to remove the