Closed ADTC closed 10 years ago
Thanks. Would you mind making a pull request out of this?
I didn't feel like forking the project just for this one-off fix, but since you insist I will :) :+1:
Thanks. This is not about laziness BTW, but also about things like maintaining correct authorship and giving proper credit.
I understand. Unfortunately I cannot find gitk.cmd
in the repository. Am I looking at the wrong repo?
Probably. As that file is not strictly related to the pure port of Git to Windows, but a convenience tool, it's in msysgit/msysgit.
This is not about laziness BTW, but also about things like maintaining correct authorship and giving proper credit.
Well, not to forget about the respect and gratitude to contribute back to a project that lives on contributions. Never forget that this project is built on a great community, and you have the opportunity to be part of that community. By contributing.
Assume the user profile is in
C:\Users\A&E\
.The
gitk.cmd
script will fail in this case because&
is recognized as joining two commands in a batch script, unless if the path is double quoted.The easiest fix for this is to use "delayed expansion" coupled with
!
(instead of%
) to demarcate the environment variable names.Fixed script:
Original script:
Related Stack Overflow question for more information (Disclaimer: posted by me)