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
The --format argument for git log in the git-windowsvc.bat file needs some extra escape characters for the % characters. As an example, the string %H%n is interpreted as the variable H followed by an n. Since the batch file does not set the variable H, %H% is replaced with nothing, leaving n.
Therefore, the following line of the batch file (before being piped to gawk)
These extra escape characters are needed in the git pretty format so
they are not replaced by variables in the batch script.
Signed-off-by: Nathaniel Struselis <Nathaniel.Struselis@hotmail.co.uk>
The
--format
argument forgit log
in thegit-windows
vc.bat
file needs some extra escape characters for the%
characters. As an example, the string%H%n
is interpreted as the variableH
followed by ann
. Since the batch file does not set the variableH
,%H%
is replaced with nothing, leavingn
.Therefore, the following line of the batch file (before being piped to
gawk
)outputs the following:
Escaping all of the
%
characters (resulting in them all being%%
) will produce the following output for the line above (run onmaster
of this repo):There is still another issue with
vc-git.awk
, on Windows, but I'll address that in a separate issue (#3).The text was updated successfully, but these errors were encountered: