Re: [PATCH 03/12] git submodule update: Move branch calculation to where it's needed

2015-10-16 Thread Junio C Hamano
Stefan Beller writes: > The branch variable is used only once so calculate it only when needed. > > Signed-off-by: Stefan Beller > --- Makes sense. > git-submodule.sh | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/git-submodule.sh b/git-submodule.sh > index eea27f8..

[PATCH 03/12] git submodule update: Move branch calculation to where it's needed

2015-10-15 Thread Stefan Beller
The branch variable is used only once so calculate it only when needed. Signed-off-by: Stefan Beller --- git-submodule.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-submodule.sh b/git-submodule.sh index eea27f8..56a0524 100755 --- a/git-submodule.sh +++ b/git-submodu