pauldotknopf / gource

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

git.exe not found #180

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. execute gource.exe on a git project

What is the expected output? What do you see instead?
Expected output is a virtualization. Instead I get an error.

What version of the product are you using? On what operating system?
Windows 7 Pro (Version 6.1.7601)

Please provide any additional information below.
It seems gource tries to find git.exe manually, instead of asking for it in 
PATH, though I haven't checked the source code.

Original issue reported on code.google.com by tyr...@tyrope.nl on 13 Mar 2013 at 5:52

Attachments:

GoogleCodeExporter commented 9 years ago
Hi.

It uses the Windows 'SearchPath' function to look for git.exe, so I'm not sure 
why that would be failing. 

Maybe there is some shell magic going on and you don't actually have a git.exe 
in PATH?

Original comment by acaudw...@gmail.com on 14 Mar 2013 at 12:43

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
C:\Users\Tyrope>SearchPath
'SearchPath' is not recognized as an internal or external command, operable 
program or batch file.

(apologies for repost, was using wrong account)

Original comment by tyr...@tyrope.nl on 14 Mar 2013 at 12:49

GoogleCodeExporter commented 9 years ago
Yeah it's a C function not a shell command.

Original comment by acaudw...@gmail.com on 14 Mar 2013 at 3:23

GoogleCodeExporter commented 9 years ago
What's the output of running 'git' and 'echo %PATH%' in cmd, tyrope?

Original comment by blahblah...@gmail.com on 15 Mar 2013 at 8:08

GoogleCodeExporter commented 9 years ago
C:\Users\Tyrope>git
usage: git [--version] [--exec-path[=<path>]] [--html-path] [--man-path] [--info
-path]
           [-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
           [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
           [-c name=value] [--help]
           <command> [<args>]

The most commonly used git commands are:
   add        Add file contents to the index
   bisect     Find by binary search the change that introduced a bug
   branch     List, create, or delete branches
   checkout   Checkout a branch or paths to the working tree
   clone      Clone a repository into a new directory
   commit     Record changes to the repository
   diff       Show changes between commits, commit and working tree, etc
   fetch      Download objects and refs from another repository
   grep       Print lines matching a pattern
   init       Create an empty git repository or reinitialize an existing one
   log        Show commit logs
   merge      Join two or more development histories together
   mv         Move or rename a file, a directory, or a symlink
   pull       Fetch from and merge with another repository or a local branch
   push       Update remote refs along with associated objects
   rebase     Forward-port local commits to the updated upstream head
   reset      Reset current HEAD to the specified state
   rm         Remove files from the working tree and from the index
   show       Show various types of objects
   status     Show the working tree status
   tag        Create, list, delete or verify a tag object signed with GPG

See 'git help <command>' for more information on a specific command.

C:\Users\Tyrope>echo %PATH%
C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86
;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Common
Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsof
t Shared\Windows Live;D:\MATROX~1\System64;D:\MATROX~1\System32;C:\Windows\syste
m32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1
.0\;D:\ATI\ATI.ACE\Core-Static;C:\Program Files (x86)\Windows Live\Shared;D:\Qui
ckTime\QTSystem\;D:\Python;C:\ATI\ATI.ACE\Core-Static;D:\Git\cmd;D:\GtkSharp\2.1
2\bin;C:\Program Files\Java\JDK6\bin\javaw.exe;D:\Enthought;D:\Enthought\Scripts

Original comment by tyr...@tyrope.nl on 15 Mar 2013 at 8:13

GoogleCodeExporter commented 9 years ago
What is in D:\Git\cmd ? Is it git.cmd? 

If so, according to this post git.cmd was renamed git.exe in newer versions of 
Git for Windows:

http://stackoverflow.com/questions/8947140/git-cmd-vs-git-exe-what-is-the-differ
ence-and-which-one-should-be-used

So you might be able to fix it by installing a new version.

Original comment by acaudw...@gmail.com on 15 Mar 2013 at 10:18

GoogleCodeExporter commented 9 years ago
Latest version of git indeed fixes this bug.

Original comment by tyr...@tyrope.nl on 16 Mar 2013 at 1:19

GoogleCodeExporter commented 9 years ago
Cool

Original comment by acaudw...@gmail.com on 16 Mar 2013 at 2:09

GoogleCodeExporter commented 9 years ago
Issue 187 has been merged into this issue.

Original comment by acaudw...@gmail.com on 8 Apr 2013 at 10:33

GoogleCodeExporter commented 9 years ago
Issue 187 has been merged into this issue.

Original comment by acaudw...@gmail.com on 9 Apr 2013 at 2:03