threads / discuss / 6044

git 1.4.4.2 is giving the following errors...

Subject: git 1.4.4.2 is giving the following errors...

## tl;dr

3 messages between Dec 21, 2006 and Dec 21, 2006.

replies: 2people: 3as markdown or json

srinivas naga vutukuri· Dec 21, 2006, 05:15 UTC · lore
Hi,
      I am new to git.
From the web site downloaded the 1.4.4.2 source and compiled on the
cygwin environment.
when am trying as an example to use the git,

------------------------------------snip---------------------------------------------------------- sh-3.2$ git clone git://git.kernel.org/pub/scm/git/git.git : command not foundclone: line 7: ': not a valid identifier line 9: unset: `CDPATH : command not foundclone: line 10: 'usr/local/bin/git-clone: line 11: syntax error near unexpected token `{ 'usr/local/bin/git-clone: line 11: `die() {

sh-3.2$ git clone http://git.kernel.org/pub/scm/git/git.git : command not foundclone: line 7: ': not a valid identifier line 9: unset: `CDPATH : command not foundclone: line 10: 'usr/local/bin/git-clone: line 11: syntax error near unexpected token `{ 'usr/local/bin/git-clone: line 11: `die() { ------------------------------------snip---------------------------------------------------------

i am facing the above prints. Could you please help me out, am i doing any thing wrong?

best regards, srinivas.

Junio C Hamano· Dec 21, 2006, 05:29 UTC · re: srinivas naga vutukuri · lore

Re: git 1.4.4.2 is giving the following errors...

"srinivas naga vutukuri" <srinivas.vutukuri@gmail.com> writes:
>       I am new to git.

Lose the CDPATH from your environment. It's a fine variable to have in your interactive shells, but it never makes sense to export into your environment.

Eric Blake· Dec 21, 2006, 13:03 UTC · re: srinivas naga vutukuri · lore

Re: git 1.4.4.2 is giving the following errors...

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to srinivas naga vutukuri on 12/20/2006 10:15 PM:
Show 5 quoted lines
> Hi,
> 
>      I am new to git.
>> From the web site downloaded the 1.4.4.2 source and compiled on the
> cygwin environment.

Why not download the pre-compiled git 1.4.4.3 from cygwin, rather than building it yourself?

Show 6 quoted lines
> when am trying as an example to use the git,
> 
> ------------------------------------snip----------------------------------------------------------
> 
> sh-3.2$ git clone git://git.kernel.org/pub/scm/git/git.git
> : command not foundclone: line 7:

I wonder if you are suffering from corrupted line endings. If your scripts end up with DOS line endings, but you execute them on a cygwin binary mount, then bash will happily treat those \r as literal characters rather than ignored whitespace (similarly to how bash behaves on Linux with \r characters, except that on Linux, people tend to not use DOS line endings).

- --
Life is short - so eat dessert first!
Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFioY/84KuGfSFAYARAiNEAJ942dcJyv4v2uYWd5NI7y43JeL9FQCeMMyH GGOX9k8mTra+K19nxv9qqDw= =RWS0 -----END PGP SIGNATURE-----

← back to recent threads