xuyongli73 / tortoisegit

Automatically exported from code.google.com/p/tortoisegit
1 stars 0 forks source link

error: unknown switch `v' when I do git clone #78

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. right mouse click on filer
2. "Git Clone..."
3. puts Url to "git://github.com/to/tombloo.git"
and Directory "d:\work\tombloo"
4. push OK
5. "error: unknown switch `v'" are appeared.
Did not clone it.

What is the expected output? What do you see instead?

git.exe clone -v "git://github.com/to/tombloo.git" "d:\work\tombloo"

error: unknown switch `v'
usage: git clone [options] [--] <repo> [<dir>]

    -q, --quiet           be quiet
    -n, --no-checkout     don't create a checkout
    --bare                create a bare repository
    --naked               create a bare repository
    --mirror              create a mirror repository (implies bare)
    -l, --local           to clone from a local repository
    --no-hardlinks        don't use local hardlinks, always copy
    -s, --shared          setup as shared repository
    --template <path>     path the template repository
    --reference <repo>    reference repository
    -o, --origin <branch>
                          use <branch> instead of 'origin' to track upstream
    -u, --upload-pack <path>
                          path to git-upload-pack on the remote
    --depth <depth>       create a shallow clone of that depth

What version of the product are you using? On what operating system?
TortoiseGit 5.1.0 32bit
MSYSGIT 1.6.0.4
Windows Vista SP1 32bit

Please provide any additional information below.

Original issue reported on code.google.com by Toby.net...@gmail.com on 24 Apr 2009 at 12:52

GoogleCodeExporter commented 9 years ago
"-v" maybe new argument. 
Can you try to upgrade msysgit to 1.6.2.2?

Original comment by lzn...@gmail.com on 24 Apr 2009 at 1:32

GoogleCodeExporter commented 9 years ago
OK, I installed 1.6.2.2 before this trying.
But, On "settings" of TortoiseGit, "git version" is 1.6.0.4.
The old CYGWIN versioned(1.6.0.4) git is recognized in priority??

Original comment by Toby.net...@gmail.com on 24 Apr 2009 at 3:15

GoogleCodeExporter commented 9 years ago
Do you set correct msysgit path?

Original comment by lzn...@gmail.com on 24 Apr 2009 at 1:53

GoogleCodeExporter commented 9 years ago
Thanks lznuaa.

I installed MSYSGIT 1.6.2.2 to "D:\software\Git",
and I set the path "D:\software\Git" or "D:\software\Git\bin" on "settings" of
TortoiseGit.
But, CYGWIN versioned is recognized after setting borth path.

When I push [...] button of "MSYSGIT path:" and set the directory,
I see dialog of "Error while reading/writing the registry key MSysGit 
アクセスが拒否
されました。". 
Then I input path of MSYSGIT to textbox directly.

If not convenient for here, I will move googlegroups...

Original comment by Toby.net...@gmail.com on 25 Apr 2009 at 12:05

GoogleCodeExporter commented 9 years ago
It maybe write local machine registry problem. 
Can you use regedit to check if vaule of 
HKEY_LOCAL_MACHINE\SOFTWARE\Tortoisegit\Msysgit

You can modified it directly. 

Do you add cygwin git to PATH?

Original comment by lzn...@gmail.com on 27 Apr 2009 at 1:30

GoogleCodeExporter commented 9 years ago
> HKEY_LOCAL_MACHINE\SOFTWARE\Tortoisegit\Msysgit
I checked it, but it has no entry of "Msysgit".
I found "CachePath", "Directory", "ProcPath", "TMergePath" on
HKEY_LOCAL_MACHINE\SOFTWARE\Tortoisegit

> Do you add cygwin git to PATH?
Yes, I add a cygwin bin path like c:\cygwin\bin(/usr/bin on cygwin).

Bye the way, I updated cygwin's git to 1.6.1.2.
For the meantime, my problem is resolved...
"error: unknown switch `v'" are not appeared.

Thanks.

Original comment by Toby.net...@gmail.com on 6 May 2009 at 3:07

GoogleCodeExporter commented 9 years ago

Original comment by lzn...@gmail.com on 6 May 2009 at 4:38