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

Re: [PATCH] Use new .git/config for storing "origin" shortcut repository

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Nov 26, 2006, 13:30 UTC
Message-ID
<Pine.LNX.4.63.0611261429420.30004@wbgn013.biozentrum.uni-wuerzburg.de>
In-Reply-To
<200611261210.52154.andyparkins@gmail.com>
Hi,
On Sun, 26 Nov 2006, Andy Parkins wrote:
Show 5 quoted lines
> -		echo >"$GIT_DIR/remotes/$origin" \
> -		"URL: $repo
> -Pull: refs/heads/$head_points_at:$origin_track" &&
> +		git-repo-config remote."$origin".url "$repo" &&
> +		git-repo-config remote."$origin".fetch "refs/heads/$head_points_at:$origin_track" ^$ &&

You do not need the "^$" here: this _is_ the first entry. I would even argue that this _has_ to replace whatever might be there (could be introduced by some bogus templates, for example), since the first fetch entry has a special meaning for pull.

Ciao, Dscho

Previous: Andy Parkins
Message 5 of 5 in “Re: [PATCH] Use new .git/config for storing "origin" shortcut repository”
  1. Junio C HamanoNov 26, 2006
  2. Use new .git/config for storing "origin" shortcut repositoryAndy Parkins, Nov 26, 2006
  3. Jakub NarebskiNov 26, 2006
  4. Use new .git/config for storing "origin" shortcut repositoryAndy Parkins, Nov 26, 2006
  5. Johannes SchindelinNov 26, 2006

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.