jgit/org.eclipse.jgit
Thomas Wolf 2323d7a1ef Hooks: avoid problems with backslashes in paths
Calling sh -c with a script path containing backslashes may fail since
the shell may try to process them as escape characters.

Instead of calling

  sh.exe -c 'C:\path\script "$@"' 'C:\path\script' other args

call

  sh.exe -c '$0 "$@"' 'C:\path\script' other args

which avoids this escape processing.

Note that this is not specific to Windows. If the path or the script
name contain backslashes, this also occurs on Unix.

Bug: 558577
Change-Id: I47d63db6f8644f956c55c42b07dbcad7d7f305aa
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
2019-12-24 13:31:23 +01:00
..
.settings Silence API error for new method in ReachabilityChecker 2019-11-25 23:43:22 +01:00
META-INF Prepare 5.6.1-SNAPSHOT builds 2019-12-11 02:04:21 +01:00
findBugs
resources/org/eclipse/jgit Make blame work correctly on merge conflicts 2019-11-27 03:03:06 +01:00
src/org/eclipse/jgit Hooks: avoid problems with backslashes in paths 2019-12-24 13:31:23 +01:00
.classpath Change JGit minimum execution environment to JavaSE-1.8 2016-09-20 11:32:36 +02:00
.fbprefs
.gitignore
.project
BUILD Merge branch 'stable-5.4' into stable-5.5 2019-09-08 17:35:14 +02:00
about.html SHA-1: collision detection support 2017-02-28 16:38:43 -08:00
build.properties Add "resources/" as a source folder 2010-06-05 14:39:27 +02:00
plugin.properties Fix bundle localization of Apache SSH bundle 2019-06-21 17:54:06 +02:00
pom.xml Prepare 5.6.1-SNAPSHOT builds 2019-12-11 02:04:21 +01:00