From: Heiko Voigt Date: Tue, 27 Nov 2012 19:16:28 GMT Subject: Re: Re: [PATCH v4 0/4] git-submodule add: Add --local-branch option Message-ID: <20121127191628.GC4185@book.hvoigt.net> In-Reply-To: <20121127183125.GA4185@book.hvoigt.net> Hi, I just realized that I gave you an confusing suggestion. On Tue, Nov 27, 2012 at 07:31:25PM +0100, Heiko Voigt wrote: > if test "$subsha1" != "$sha1" > then > handle_on_demand_fetch_update ... > else > handle_tracked_branch_update ... > fi That obviously does not work. Here I meant of course something like: if test "$update_module" = "branch" then handle_tracked_branch_update ... else handle_on_demand_fetch_update ... fi Cheers Heiko