git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] git-submodule: a small fix

From
Andrew Ardill <andrew.ardill@gmail.com>
Date
Sep 27, 2011, 03:22 UTC
Message-ID
<CAH5451k-6HHx2xxddJauE8=P1umjG=TnrcOKmQfeh=4GOzpCKQ@mail.gmail.com>
In-Reply-To
<CAOOg04z0UjOQCBMTuii37y3ykNU17hDTcD9E81C+r1whFpMaCg@mail.gmail.com>
On 27 September 2011 08:00, Roy Liu <carsomyr@gmail.com> wrote:
Show 14 quoted lines
> In git-submodule.sh, the "url" variable may contain a stale value from
> the previous loop iteration, so clear it.
>
> --- git-submodule.sh.orig   2011-09-26 17:50:45.000000000 -0400
> +++ git-submodule.sh    2011-09-26 17:51:18.000000000 -0400
> @@ -370,6 +370,8 @@
>            esac
>            git config submodule."$name".url "$url" ||
>            die "Failed to register url for submodule path '$path'"
> +        else
> +            url=""
>        fi
>
>        # Copy "update" setting when it is not set yet
Perhaps a better commit description would be:
git-submodule: clear the url variable when not set to avoid using stale values
otherwise looks clean enough
Andrew
Previous: Roy LiuNext: Jens Lehmann
Message 2 of 3 in “git-submodule: a small fix”
  1. git-submodule: a small fixRoy Liu, Sep 26, 2011
  2. Andrew ArdillSep 27, 2011
  3. Jens LehmannSep 27, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.