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

[TopGit PATCH] tg-info: fix sed typo

From
Jonathan Nieder <jrnieder@uchicago.edu>
Date
Aug 13, 2008, 05:16 UTC
Message-ID
<Pine.GSO.4.62.0808130013480.8904@harper.uchicago.edu>
In-Reply-To
<Pine.GSO.4.62.0808121911340.1112@harper.uchicago.edu>

There was a semicolon missing before a closing brace. The result is an error message on some operating systems (e.g., Mac OS 10.3).

	$ tg info
	Topic Branch: t/some-topic (       2/       2 commits)
	Subject: [PATCH] t/some-topic
	Base: 082a7c9
	sed: 1: "1{s/^/Depends: /;n}; s/ ...": extra characters a
	t the end of n command
Signed-off-by: Jonathan Nieder <jrnieder@uchicago.edu>
---
	Hi again,
	Here is the other change I needed to run topgit.  I
	hope it is of some use.
 tg-info.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tg-info.sh b/tg-info.sh
index 43589f9..7899ada 100644
--- a/tg-info.sh
+++ b/tg-info.sh
@@ -39,7 +39,7 @@ branch_contains "$name" "$base_rev" ||
 	echo "Base is newer than head! Please run \`tg update\`."
 
 git cat-file blob "$name:.topdeps" |
-	sed '1{s/^/Depends: /;n}; s/^/         /;'
+	sed '1{ s/^/Depends: /; n; }; s/^/         /'
 
 depcheck="$(mktemp)"
 missing_deps=
-- 
tg: (f27e693..) t/sed-fix (depends on: )
Previous: Jonathan Nieder
Message 6 of 6 in “Do not use mktemp”
  1. Do not use mktempJonathan Nieder, Aug 12, 2008
  2. suppress "cannot overwrite existing file" errorJonathan Nieder, Aug 12, 2008
  3. Petr BaudisAug 12, 2008
  4. Jonathan NiederAug 12, 2008
  5. supply template argument to mktempJonathan Nieder, Aug 13, 2008
  6. tg-info: fix sed typoJonathan Nieder, Aug 13, 2008

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.