You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Git up doesn't (always) work with pretty log format #11
when running on Windows, PyGitUp writes the log-hook command to a temporary .bat file and then executes it via cmd.exe (see gitup.py#L301). So may it be that git.exe is not in your PATH and thus cannot be found?
The simple example that works also does use git, so that's not the problem.
It looks like something with variable expansion is going wrong. On Windows %C gets interpretated as a variable. If I play around with the format in the .gitconfig file, I am seeing some output like:
C cd h
Which looks like %C %cd %h gets expanded to C cd h.
Maybe we need to escape these things, or disable variable expansion.
I am trying to debug this by modifying the gitup.py on my local machine.
Activity
msiemens commentedon Mar 18, 2014
Hey,
when running on Windows, PyGitUp writes the log-hook command to a temporary .bat file and then executes it via
cmd.exe(see gitup.py#L301). So may it be thatgit.exeis not in yourPATHand thus cannot be found?Markus
valentijnscholten commentedon Mar 19, 2014
The simple example that works also does use git, so that's not the problem.
It looks like something with variable expansion is going wrong. On Windows %C gets interpretated as a variable. If I play around with the format in the .gitconfig file, I am seeing some output like:
Which looks like %C %cd %h gets expanded to C cd h.
Maybe we need to escape these things, or disable variable expansion.
I am trying to debug this by modifying the gitup.py on my local machine.