# [PATCH] cg-fetch: Fixed missing $COGITO_LIB path

2 messages from 2005-10-24 to 2005-10-24. Participants: Martin Langhoff, Junio C Hamano.
Thread: https://gitlist.dev/t/2211

## Martin Langhoff, 2005-10-24 20:49

Subject: [PATCH] cg-fetch: Fixed missing $COGITO_LIB path
Message-ID: <11301869531376-git-send-email-martin@catalyst.net.nz>
URL: https://gitlist.dev/e/11301869531376-git-send-email-martin%40catalyst.net.nz

```
Trivial fix -- prevents cg-fetch from working on systems where the COGITO_LIB
env var isn't set.

Signed-off-by: Martin Langhoff <martin@catalyst.net.nz>


---

Resend: Added signoff as requested.

---

 cg-fetch |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

applies-to: 6dd73afff0a1f3e2433b90e2ea42f8500393bd97
ae2ea27f59cdb22d7587aaa49f12f29e1b1f77e1
diff --git a/cg-fetch b/cg-fetch
index f0c11aa..80b2a03 100755
--- a/cg-fetch
+++ b/cg-fetch
@@ -39,7 +39,7 @@ deprecated_alias cg-fetch cg-pull
 
 fetch_progress()
 {
-	exec cg-Xfetchprogress "$_git_objects"
+	exec ${COGITO_LIB}cg-Xfetchprogress "$_git_objects"
 }
 
 show_changes_summary()
---
0.99.8.GIT

```

## Junio C Hamano, 2005-10-24 21:11

Subject: Re: [PATCH] cg-fetch: Fixed missing $COGITO_LIB path
Message-ID: <7vacgymxgs.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7vacgymxgs.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <11301869531376-git-send-email-martin@catalyst.net.nz>

```
Martin Langhoff <martin@catalyst.net.nz> writes:

>  fetch_progress()
>  {
> -	exec cg-Xfetchprogress "$_git_objects"
> +	exec ${COGITO_LIB}cg-Xfetchprogress "$_git_objects"
>  }

I think somebody recently sent a patch to quote the variable so
that you can have whitespace in it.  So probably:

	exec "${COGITO_LIB}"cg-Xfetchprogress "$_git_objects"

or even "${COGITO_LIB}/"cg-...

```
