[TopGit PATCH] tg-info: fix sed typo

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxx>

---
	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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux