Re: [msysGit] [PATCH] submodules: ensure clean environment when operating in a submodule
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Feb 23, 2010, 00:04 UTC
- Message-ID
- <alpine.DEB.1.00.1002230103160.3609@intel-tinevez-2-302>
- In-Reply-To
- <1266877015-7943-1-git-send-email-giuseppe.bilotta@gmail.com>
Hi,
On Mon, 22 Feb 2010, Giuseppe Bilotta wrote:
Show 13 quoted lines
> git-submodule takes care of clearing GIT_DIR whenever it operates > on a submodule index or configuration, but forgot to unset GIT_WORK_TREE > before operating on the submodule worktree, which would lead to failures > when GIT_WORK_TREE was set. > > This only happened in very unusual contexts such as operating on the > main worktree from outside of it, but since "git-gui: set GIT_DIR and > GIT_WORK_TREE after setup" (a9fa11fe5bd5978bb) such failures could also > be provoked by invoking an external tool such as "git submodule update" > from the Git GUI in a standard setup. > > Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com> > ---
Heiko, would you say that this patch is an elegant solution to the problem you reported? If so, would you please pull it to 4msysgit.git's devel?
Thanks, Dscho