# [COGITO PATCH] fix "cg-Xnormid: command not found" error

3 messages from 2005-05-29 to 2005-05-29. Participants: YOSHIFUJI Hideaki / 吉藤英明, Marcel Holtmann, Petr Baudis.
Thread: https://gitlist.dev/t/754

## YOSHIFUJI Hideaki / 吉藤英明, 2005-05-29 03:15

Subject: [COGITO PATCH] fix "cg-Xnormid: command not found" error
Message-ID: <20050529.121545.77345008.yoshfuji@linux-ipv6.org>
URL: https://gitlist.dev/e/20050529.121545.77345008.yoshfuji%40linux-ipv6.org

```
Call cg-Xnormid with ${COGITO_LIB} to fix "cg-Xnormid: command not found"
error.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>

Index: commit-id
===================================================================
--- c8e987e5e4608c1144293cd3f852210d70b572cb/commit-id  (mode:100755)
+++ uncommitted/commit-id  (mode:100755)
@@ -8,7 +8,7 @@
 . ${COGITO_LIB}cg-Xlib
 
 id="$1"
-normid=$(cg-Xnormid "$id") || exit 1
+normid=$(${COGITO_LIB}cg-Xnormid "$id") || exit 1
 
 if [ "$(git-cat-file -t "$normid")" != "commit" ]; then
 	echo "Invalid commit id: $id" >&2
Index: tree-id
===================================================================
--- c8e987e5e4608c1144293cd3f852210d70b572cb/tree-id  (mode:100755)
+++ uncommitted/tree-id  (mode:100755)
@@ -6,7 +6,7 @@
 # Takes ID of the appropriate commit, defaults to HEAD.
 
 id="$1"
-normid=$(cg-Xnormid "$id") || exit 1
+normid=$(${COGITO_LIB}cg-Xnormid "$id") || exit 1
 type=$(git-cat-file -t "$normid")
 
 if [ "$type" = "commit" ]; then


-- 
YOSHIFUJI Hideaki @ USAGI Project  <yoshfuji@linux-ipv6.org>
GPG-FP  : 9022 65EB 1ECF 3AD1 0BDF  80D8 4807 F894 E062 0EEA

```

## Marcel Holtmann, 2005-05-29 09:57

Subject: Re: [COGITO PATCH] fix "cg-Xnormid: command not found" error
Message-ID: <1117360678.7072.53.camel@pegasus>
URL: https://gitlist.dev/e/1117360678.7072.53.camel%40pegasus
In-Reply-To: <20050529.121545.77345008.yoshfuji@linux-ipv6.org>

```
Hi,

> Call cg-Xnormid with ${COGITO_LIB} to fix "cg-Xnormid: command not found"
> error.

I made the same patch, but when I used cg-diff to create the patch, I
got two extra annoying lines at the top.

commit-id: needs update
tree-id: needs update
Index: commit-id
===================================================================
--- c8e987e5e4608c1144293cd3f852210d70b572cb/commit-id  (mode:100755)
+++ uncommitted/commit-id  (mode:100755)

I think the "needs update" lines came from "git-update-cache --refresh"
and we don't really want them there. Should we simply direct the output
to /dev/null or what?

Regards

Marcel



```

## Petr Baudis, 2005-05-29 12:06

Subject: Re: [COGITO PATCH] fix "cg-Xnormid: command not found" error
Message-ID: <20050529120628.GE1036@pasky.ji.cz>
URL: https://gitlist.dev/e/20050529120628.GE1036%40pasky.ji.cz
In-Reply-To: <1117360678.7072.53.camel@pegasus>

```
Dear diary, on Sun, May 29, 2005 at 11:57:57AM CEST, I got a letter
where Marcel Holtmann <marcel@holtmann.org> told me that...
> I made the same patch, but when I used cg-diff to create the patch, I
> got two extra annoying lines at the top.
> 
> commit-id: needs update
> tree-id: needs update
> Index: commit-id
> ===================================================================
> --- c8e987e5e4608c1144293cd3f852210d70b572cb/commit-id  (mode:100755)
> +++ uncommitted/commit-id  (mode:100755)
> 
> I think the "needs update" lines came from "git-update-cache --refresh"
> and we don't really want them there. Should we simply direct the output
> to /dev/null or what?

Oh yes, this is one of the small things I've long meant to fix but never
really got to it. Thanks for reminding me, fixed now. :-)

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor

```
