[TopGit PATCH] tg-info: fix sed typo

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Petr Baudis <pasky@...>
Cc: <git@...>
Date: Wednesday, August 13, 2008 - 1:16 am

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: )
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[TopGit PATCH/RFC] Do not use mktemp, Jonathan Nieder, (Tue Aug 12, 2:14 pm)
Re: [TopGit PATCH/RFC] Do not use mktemp, Petr Baudis, (Tue Aug 12, 4:44 pm)
Re: [TopGit PATCH/RFC] Do not use mktemp, Jonathan Nieder, (Tue Aug 12, 5:07 pm)
[TopGit PATCH] supply template argument to mktemp, Jonathan Nieder, (Tue Aug 12, 8:17 pm)
[TopGit PATCH] tg-info: fix sed typo, Jonathan Nieder, (Wed Aug 13, 1:16 am)